Qt: Fix shutdown and save state in fullscreen UI

This commit is contained in:
Connor McLaughlin
2022-10-03 22:18:49 +10:00
parent 74452eede3
commit 106addf5a8
6 changed files with 19 additions and 17 deletions

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); });
}
}