Skip to content

Commit

Permalink
Fix for auto closing dialogs on navigate (#23262)
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze authored Dec 11, 2024
1 parent 86f1af6 commit 18cce45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialogs/make-dialog-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ const _handleClosed = async (ev: HASSDomEvent<DialogClosedParams>) => {
{ dialog: OPEN_DIALOG_STACK[OPEN_DIALOG_STACK.length - 1].dialogTag },
""
);
} else {
} else if (dialogIndex !== -1) {
// if the dialog is the last one and it was indeed open, go back
mainWindow.history.back();
}
}
Expand Down

0 comments on commit 18cce45

Please sign in to comment.