mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-20 17:10:08 +00:00
Qt: Re-update main window geometry on nogui exit
Also fix the game list refresh executing on the incorrect thread.
This commit is contained in:
parent
1b56940ad0
commit
8bd493eae0
@ -772,9 +772,16 @@ void EmuThread::exitFullscreenUI()
|
||||
|
||||
stopFullscreenUI();
|
||||
|
||||
// if we were in nogui mode, the game list won't have been populated yet. do it now.
|
||||
if (was_in_nogui_mode)
|
||||
g_main_window->refreshGameList(false);
|
||||
{
|
||||
Host::RunOnUIThread([]() {
|
||||
// Restore the geometry of the main window, since the display window may have been moved.
|
||||
QtUtils::RestoreWindowGeometry("MainWindow", g_main_window);
|
||||
|
||||
// if we were in nogui mode, the game list won't have been populated yet. do it now.
|
||||
g_main_window->refreshGameList(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void EmuThread::bootSystem(std::shared_ptr<SystemBootParameters> params)
|
||||
|
Loading…
x
Reference in New Issue
Block a user