detach Admin UI when updating Setting
This commit is contained in:
		| @@ -32,6 +32,7 @@ Layers::SetType(C_DebugMode_MainUI, CUILayer::EUILayerType::Normal); | |||||||
| if (S_DebugLib_RestrictUIto == "") { | if (S_DebugLib_RestrictUIto == "") { | ||||||
| 	Layers::Attach(C_DebugMode_MainUI); | 	Layers::Attach(C_DebugMode_MainUI); | ||||||
| } else { | } else { | ||||||
|  | 	Layers::Detach(C_DebugMode_MainUI); | ||||||
| 	foreach (Login in TL::Split(",", S_DebugLib_RestrictUIto)) { | 	foreach (Login in TL::Split(",", S_DebugLib_RestrictUIto)) { | ||||||
| 		declare CSmPlayer Player = GetPlayer(Login); | 		declare CSmPlayer Player = GetPlayer(Login); | ||||||
| 		if (Player != Null) Layers::Attach(C_DebugMode_MainUI, Player); | 		if (Player != Null) Layers::Attach(C_DebugMode_MainUI, Player); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user