More confirmexit fixes

This commit is contained in:
Henrik Rydgård committed 2025-02-17 16:20:41 -06:00
1 parent dd119f5971
commit 74ee868cdb
4 files changed
+10 -7

No files matched your search

+6 -2
View File
@@ -819,12 +819,12 @@ namespace MainWindow
bool ConfirmExit(HWND hWnd) {
const GlobalUIState state = GetUIState();
if (state == UISTATE_MENU || state == UISTATE_EXIT) {
return false;
return true;
}
std::string confirmExitMessage = GetConfirmExitMessage();
if (confirmExitMessage.empty()) {
return false;
return true;
}
auto di = GetI18NCategory(I18NCat::DIALOG);
auto mm = GetI18NCategory(I18NCat::MAINMENU);
@@ -1161,6 +1161,10 @@ namespace MainWindow
UpdateSwitchUMD();
break;
case WM_USER_DESTROY:
DestroyWindow(hWnd);
break;
case WM_MENUSELECT:
// Called when a menu is opened. Also when an item is selected, but meh.
UpdateMenus(true);