Qt: Fix shutdown and save state in fullscreen UI

This commit is contained in:
Connor McLaughlin committed 2022-10-04 00:00:56 +10:00
1 parent 74452eede3
commit 106addf5a8
6 files changed
+19 -17

No files matched your search

+2 -2
View File
@@ -975,12 +975,12 @@ void Host::RequestExit(bool save_state_if_running)
s_running.store(false, std::memory_order_release);
}
void Host::RequestSystemShutdown(bool allow_confirm, bool allow_save_state)
void Host::RequestSystemShutdown(bool allow_confirm, bool save_state)
{
// TODO: Confirm
if (System::IsValid())
{
Host::RunOnCPUThread([allow_save_state]() { System::ShutdownSystem(allow_save_state); });
Host::RunOnCPUThread([save_state]() { System::ShutdownSystem(save_state); });
}
}