Merge pull request #12831 from TryTwo/Fix_batch_mode

MainWindow: Fix batch mode
This commit is contained in:
Admiral H. Curtiss 2024-06-06 03:55:22 +02:00 committed by GitHub
commit 47fae68b0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -239,7 +239,8 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters,
QSettings& settings = Settings::GetQSettings(); QSettings& settings = Settings::GetQSettings();
restoreState(settings.value(QStringLiteral("mainwindow/state")).toByteArray()); restoreState(settings.value(QStringLiteral("mainwindow/state")).toByteArray());
restoreGeometry(settings.value(QStringLiteral("mainwindow/geometry")).toByteArray()); restoreGeometry(settings.value(QStringLiteral("mainwindow/geometry")).toByteArray());
show(); if (!Settings::Instance().IsBatchModeEnabled())
show();
InitControllers(); InitControllers();
ConnectHotkeys(); ConnectHotkeys();