Simplified to single ClickHandler call

This commit is contained in:
David Higueros committed 2026-11-02 19:52:45 -07:00
1 parent 61351c958b
commit 64a8539bc3
1 file changed
+2 -8
+2 -8
View File
@@ -179,14 +179,8 @@ public abstract class CustomActionButton
MiraEventManager.InvokeEvent(cancelEvent, cancelEventType);
}
if (specificInvoked)
{
if (!@event.IsCancelled) ClickHandler();
}
else
{
if (!genericEvent.IsCancelled) ClickHandler();
}
MiraCancelableEvent eventCheck = specificInvoked ? @event : genericEvent;
if (!eventCheck.IsCancelled) ClickHandler();
}));
if (Keybind == null) return;