Don't show verb confirmation pop-ups in debug mode (#20300)
This commit is contained in:
@@ -216,8 +216,16 @@ namespace Content.Client.Verbs.UI
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verb.ConfirmationPopup)
|
#if DEBUG
|
||||||
|
// No confirmation pop-ups in debug mode.
|
||||||
|
ExecuteVerb(verb);
|
||||||
|
#else
|
||||||
|
if (!verb.ConfirmationPopup)
|
||||||
{
|
{
|
||||||
|
ExecuteVerb(verb);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (verbElement.SubMenu == null)
|
if (verbElement.SubMenu == null)
|
||||||
{
|
{
|
||||||
var popupElement = new ConfirmationMenuElement(verb, "Confirm");
|
var popupElement = new ConfirmationMenuElement(verb, "Confirm");
|
||||||
@@ -226,11 +234,7 @@ namespace Content.Client.Verbs.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
_context.OpenSubMenu(verbElement);
|
_context.OpenSubMenu(verbElement);
|
||||||
}
|
#endif
|
||||||
else
|
|
||||||
{
|
|
||||||
ExecuteVerb(verb);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Close()
|
private void Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user