Qt: Fix saved geometry being lost in nogui mode

pull/3760/head
Stenzek 2 weeks ago
parent 57a77b433c
commit ad705e7d87
No known key found for this signature in database

@ -2940,7 +2940,8 @@ void MainWindow::closeEvent(QCloseEvent* event)
// When recreating, g_main_window will be the new window at this point.
if (!QtHost::IsSystemValidOrStarting() || g_main_window != this)
{
QtUtils::SaveWindowGeometry(this);
if (!QtHost::InNoGUIMode())
QtUtils::SaveWindowGeometry(this);
if (s_locals.fullscreen_ui_started && g_main_window == this)
g_core_thread->stopFullscreenUI();

Loading…
Cancel
Save