UI: Fix crash on exit hotkey button press

This commit is contained in:
goeiecool9999
2026-01-16 00:51:46 +01:00
parent 8af510b9e3
commit 42262b5823
+3 -1
View File
@@ -198,7 +198,9 @@ void HotkeySettings::Init(MainWindow* mainWindowFrame)
ActiveSettings::SetTimerShiftFactor((ActiveSettings::GetTimerShiftFactor() < 3) ? 3 : 1);
}},
{&s_cfgHotkeys.exitApplication, [](void) {
s_mainWindow->Close(true);
auto closeEvent = new wxCloseEvent{wxEVT_CLOSE_WINDOW, s_mainWindow->GetId()};
closeEvent->SetCanVeto(false);
wxQueueEvent(s_mainWindow, closeEvent);
}},
#ifdef CEMU_DEBUG_ASSERT
{&s_cfgHotkeys.endEmulation, [](void) {