]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix AHelp progressively showing more AHelp panels (#20591)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Fri, 29 Sep 2023 01:46:16 +0000 (18:46 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 01:46:16 +0000 (18:46 -0700)
Content.Client/Administration/UI/Bwoink/BwoinkControl.xaml.cs
Content.Client/UserInterface/Systems/Bwoink/AHelpUIController.cs

index bcac6c00d529ad711533ba215fe239287e7d82bc..5d760d9ab80b6297e2c65abc85ec9b78155e9b8e 100644 (file)
@@ -235,6 +235,7 @@ namespace Content.Client.Administration.UI.Bwoink
 
             if (ch != null)
             {
+                AHelpHelper.HideAllPanels();
                 var panel = AHelpHelper.EnsurePanel(ch.Value);
                 panel.Visible = true;
             }
index f26d33f5f87051a5ca78c7e0b397aed99c55723b..87d4b8072fcc4fcde6748f0513c893152fcb77cd 100644 (file)
@@ -437,6 +437,14 @@ public sealed class AdminAHelpUIHandler : IAHelpUIHandler
         }
     }
 
+    public void HideAllPanels()
+    {
+        foreach (var panel in _activePanelMap.Values)
+        {
+            panel.Visible = false;
+        }
+    }
+
     public BwoinkPanel EnsurePanel(NetUserId channelId)
     {
         EnsureControl();