Qt: Fix double memcard warning on shutdown

This commit is contained in:
Stenzek 2025-03-29 18:01:10 +10:00
parent 0687e59bda
commit ba3c693717
No known key found for this signature in database

View File

@ -2576,8 +2576,15 @@ void Host::RequestSystemShutdown(bool allow_confirm, bool save_state)
if (!System::IsValid()) if (!System::IsValid())
return; return;
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Qt::QueuedConnection, Q_ARG(bool, allow_confirm), if (!allow_confirm)
Q_ARG(bool, true), Q_ARG(bool, save_state)); {
g_emu_thread->shutdownSystem(save_state, false);
}
else
{
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Qt::QueuedConnection, Q_ARG(bool, allow_confirm),
Q_ARG(bool, true), Q_ARG(bool, save_state));
}
} }
void Host::RequestResetSettings(bool system, bool controller) void Host::RequestResetSettings(bool system, bool controller)