From c0ed46492ba62c0e8d9fb840296f01c2e7155fe3 Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 28 Aug 2023 01:45:55 +0200 Subject: [PATCH] detach Admin UI when updating Setting --- TM_DebugMode.Script.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/TM_DebugMode.Script.txt b/TM_DebugMode.Script.txt index aefb5f4..feb8a6c 100644 --- a/TM_DebugMode.Script.txt +++ b/TM_DebugMode.Script.txt @@ -32,6 +32,7 @@ Layers::SetType(C_DebugMode_MainUI, CUILayer::EUILayerType::Normal); if (S_DebugLib_RestrictUIto == "") { Layers::Attach(C_DebugMode_MainUI); } else { + Layers::Detach(C_DebugMode_MainUI); foreach (Login in TL::Split(",", S_DebugLib_RestrictUIto)) { declare CSmPlayer Player = GetPlayer(Login); if (Player != Null) Layers::Attach(C_DebugMode_MainUI, Player);