mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-10 16:34:36 +00:00
Qt: Fix assertion on shutdown after resize
This commit is contained in:
@@ -1926,6 +1926,13 @@ void EmuThread::stop()
|
||||
|
||||
QMetaObject::invokeMethod(g_emu_thread, &EmuThread::stopInThread, Qt::QueuedConnection);
|
||||
QtUtils::ProcessEventsWithSleep(QEventLoop::ExcludeUserInputEvents, []() { return (g_emu_thread->isRunning()); });
|
||||
|
||||
// Ensure settings are saved.
|
||||
if (s_settings_save_timer)
|
||||
{
|
||||
s_settings_save_timer.reset();
|
||||
QtHost::SaveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
void EmuThread::stopInThread()
|
||||
@@ -1934,13 +1941,6 @@ void EmuThread::stopInThread()
|
||||
|
||||
m_shutdown_flag = true;
|
||||
m_event_loop->quit();
|
||||
|
||||
// Ensure settings are saved.
|
||||
if (s_settings_save_timer)
|
||||
{
|
||||
s_settings_save_timer.reset();
|
||||
QtHost::SaveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
void EmuThread::run()
|
||||
|
||||
Reference in New Issue
Block a user