mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-11 01:25:15 +02:00
UI: Fix crash on exit hotkey button press
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user