diff --git a/LightlessSync/UI/SyncshellAdminUI.cs b/LightlessSync/UI/SyncshellAdminUI.cs index ec51596..3dd90de 100644 --- a/LightlessSync/UI/SyncshellAdminUI.cs +++ b/LightlessSync/UI/SyncshellAdminUI.cs @@ -256,14 +256,17 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase { using (ImRaii.PushColor(ImGuiCol.Text, UIColors.Get("LightlessYellow"))) { - if (_uiSharedService.IconButton(FontAwesomeIcon.Crown) && UiSharedService.CtrlPressed() && UiSharedService.ShiftPressed()) + using (ImRaii.Disabled(!UiSharedService.ShiftPressed())) { - _ = _apiController.GroupChangeOwnership(new(GroupFullInfo.Group, pair.Key.UserData)); - ImGui.CloseCurrentPopup(); + if (_uiSharedService.IconButton(FontAwesomeIcon.Crown)) + { + _ = _apiController.GroupChangeOwnership(new(GroupFullInfo.Group, pair.Key.UserData)); + IsOpen = false; + } } } - UiSharedService.AttachToolTip("Hold CTRL and SHIFT and click to transfer ownership of this Syncshell to " + UiSharedService.AttachToolTip("Hold SHIFT and click to transfer ownership of this Syncshell to " + (pair.Key.UserData.AliasOrUID) + Environment.NewLine + "WARNING: This action is irreversible and will close screen."); ImGui.SameLine();