From cb29db60d12f454bfd387845af4fe8ba26e051c5 Mon Sep 17 00:00:00 2001 From: Exp Date: Tue, 13 Oct 2020 11:42:12 +0200 Subject: [PATCH] Closes UI when the panel closes (#2242) --- Content.Server/GameObjects/Components/WiresComponent.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server/GameObjects/Components/WiresComponent.cs b/Content.Server/GameObjects/Components/WiresComponent.cs index 5b8469c479..100157f0a7 100644 --- a/Content.Server/GameObjects/Components/WiresComponent.cs +++ b/Content.Server/GameObjects/Components/WiresComponent.cs @@ -56,6 +56,9 @@ namespace Content.Server.GameObjects.Components } _isPanelOpen = value; + + if (!_isPanelOpen) + UserInterface?.CloseAll(); UpdateAppearance(); } }