mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-23 10:30:23 +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();
|
stopFullscreenUI();
|
||||||
|
|
||||||
// if we were in nogui mode, the game list won't have been populated yet. do it now.
|
|
||||||
if (was_in_nogui_mode)
|
if (was_in_nogui_mode)
|
||||||
|
{
|
||||||
|
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);
|
g_main_window->refreshGameList(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmuThread::bootSystem(std::shared_ptr<SystemBootParameters> params)
|
void EmuThread::bootSystem(std::shared_ptr<SystemBootParameters> params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user