MainWindow: Check for batch mode before show().

This commit is contained in:
TryTwo 2024-06-04 00:26:04 -07:00
parent 46a89936ae
commit fa00728d3e
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();
restoreState(settings.value(QStringLiteral("mainwindow/state")).toByteArray());
restoreGeometry(settings.value(QStringLiteral("mainwindow/geometry")).toByteArray());
show();
if (!Settings::Instance().IsBatchModeEnabled())
show();
InitControllers();
ConnectHotkeys();