Skip to content

Commit

Permalink
dialogs shouldnt close with actions when they arent closable
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Nov 29, 2023
1 parent fde79a2 commit 6a3500a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/containers/dialogs/Dialog.hx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Dialog extends DialogBase {
public function new() {
super();
ActionManager.instance.registerEvent(ActionEvent.ACTION_START, function(event) { // global action listener
if (event.action == ActionType.CANCEL || event.action == ActionType.BACK) {
if (this.closable && (event.action == ActionType.CANCEL || event.action == ActionType.BACK)) {
hideDialog(DialogButton.CANCEL);
}
});
Expand Down

0 comments on commit 6a3500a

Please sign in to comment.