From 28c28623a8ce2950824f8f1a6dabac23d5592a62 Mon Sep 17 00:00:00 2001 From: TryTwo Date: Fri, 7 Jun 2024 03:58:00 -0700 Subject: [PATCH] MainWindow: Don't save UI geometry in batch mode. Batch mode was erasing the UI geometry for the sessions where batch mode is off. Render widget is still saved. --- Source/Core/DolphinQt/MainWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index ddeaf6b196..67860c464a 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -346,8 +346,11 @@ MainWindow::~MainWindow() QSettings& settings = Settings::GetQSettings(); - settings.setValue(QStringLiteral("mainwindow/state"), saveState()); - settings.setValue(QStringLiteral("mainwindow/geometry"), saveGeometry()); + if (!Settings::Instance().IsBatchModeEnabled()) + { + settings.setValue(QStringLiteral("mainwindow/state"), saveState()); + settings.setValue(QStringLiteral("mainwindow/geometry"), saveGeometry()); + } settings.setValue(QStringLiteral("renderwidget/geometry"), m_render_widget_geometry);