boom
This commit is contained in:
@@ -757,14 +757,19 @@ public class DrawUserPair
|
||||
}
|
||||
UiSharedService.AttachToolTip("Hold CTRL and click to remove user " + (_pair.UserData.AliasOrUID) + " from Syncshell");
|
||||
|
||||
if (_uiSharedService.IconTextButton(FontAwesomeIcon.UserSlash, "Ban User", _menuWidth, true))
|
||||
var banEnabled = UiSharedService.CtrlPressed();
|
||||
var banLabel = banEnabled ? "Ban user" : "Ban user (Hold CTRL)";
|
||||
if (_uiSharedService.IconTextButton(FontAwesomeIcon.UserSlash, banLabel, _menuWidth, true) && banEnabled)
|
||||
{
|
||||
_mediator.Publish(new OpenBanUserPopupMessage(_pair, group));
|
||||
ImGui.CloseCurrentPopup();
|
||||
}
|
||||
UiSharedService.AttachToolTip("Ban user from this Syncshell");
|
||||
UiSharedService.AttachToolTip("Hold CTRL to ban user " + (_pair.UserData.AliasOrUID) + " from this Syncshell");
|
||||
|
||||
ImGui.Separator();
|
||||
if (showOwnerActions)
|
||||
{
|
||||
ImGui.Separator();
|
||||
}
|
||||
}
|
||||
|
||||
if (showOwnerActions)
|
||||
|
||||
Reference in New Issue
Block a user