Fix an issue with Exit icon not showing up in MessagePopup

This commit is contained in:
Henrik Rydgård committed 2026-05-13 11:04:03 +02:00
1 parent 57c8cc9761
commit 6eb0b3fd51
50 files changed
+63 -55

No files matched your search

+3 -4
View File
@@ -686,8 +686,8 @@ void GamePauseScreen::CreateViews() {
rightColumnItems->Add(new Spacer(20.0));
Choice *exit;
if (g_Config.bPauseMenuExitsEmulator) {
auto mm = GetI18NCategory(I18NCat::MAINMENU);
exit = new Choice(mm->T("Exit"), ImageID("I_EXIT"));
auto di = GetI18NCategory(I18NCat::DIALOG);
exit = new Choice(di->T("Exit"), ImageID("I_EXIT"));
} else {
exit = new Choice(pa->T("Exit to menu"), ImageID("I_EXIT"));
}
@@ -862,10 +862,9 @@ void GamePauseScreen::OnExit(UI::EventParams &e) {
std::string confirmExitMessage = GetConfirmExitMessage();
if (!confirmExitMessage.empty()) {
auto mm = GetI18NCategory(I18NCat::MAINMENU);
auto di = GetI18NCategory(I18NCat::DIALOG);
std::string_view title = di->T("Are you sure you want to exit?");
screenManager()->push(new UI::MessagePopupScreen(title, confirmExitMessage, mm->T("Exit"), di->T("Cancel"), [this](bool result) {
screenManager()->push(new UI::MessagePopupScreen(title, confirmExitMessage, di->T("Exit"), di->T("Cancel"), [this](bool result) {
if (result) {
if (g_Config.bPauseMenuExitsEmulator) {
System_ExitApp();