Qt: Fix saved geometry being lost in nogui mode

This commit is contained in:
Stenzek
2026-06-26 22:13:20 +10:00
parent 57a77b433c
commit ad705e7d87
+2 -1
View File
@@ -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();