mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
More confirmexit fixes
This commit is contained in:
1 parent
dd119f5971
commit
74ee868cdb
4 files changed
+10
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user