fix(ui): the gear and socials drawers retract on an outside click

Reported 2026-11-05: those two tabs stayed open when clicking elsewhere, unlike Stream Settings, YPP
and TEST. All five drawers share one host (TextPullOutHost), but the window's click-outside guard only
listed the other three, so the gear and socials panels had no way to dismiss except their own tab.

The guard now closes them too, and a test pins both directions: an outside click retracts the drawer,
and a click inside it does not.
This commit is contained in:
2026-11-05 17:14:40 -08:00
parent a1d861608f
commit 3261293d57
3 changed files with 82 additions and 2 deletions
+3 -2
View File
@@ -34,8 +34,9 @@ public partial class MainViewModel
SettingsDrawerOpen = true;
}
/// <summary>Called by the other drawers when they open, so settings yields to them.</summary>
private void CloseSettingsDrawerIfOpen()
/// <summary>Called by the other drawers when they open, so settings yields to them — and by the
/// window's click-outside guard, so the gear tab retracts like every other drawer (2026-11-05).</summary>
internal void CloseSettingsDrawerIfOpen()
{
if (_settingsDrawerOpen) SettingsDrawerOpen = false;
}