detach Admin UI when updating Setting

This commit is contained in:
Beu 2023-08-28 01:45:55 +02:00
parent 3e6f2e29ec
commit c0ed46492b
1 changed files with 1 additions and 0 deletions

View File

@ -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);