Added button combo to press while transfering, close screen after.
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
if (_uiSharedService.IconButton(FontAwesomeIcon.Crown))
|
||||
{
|
||||
_ = _apiController.GroupChangeOwnership(new(GroupFullInfo.Group, pair.Key.UserData));
|
||||
ImGui.CloseCurrentPopup();
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user