Start in maximized window on first start (#3075)

This commit is contained in:
Vafthrudnir 2018-02-04 19:07:37 +01:00 committed by Zach H
parent 517420cccb
commit 63d0f5af43

View file

@ -782,8 +782,9 @@ MainWindow::MainWindow(QWidget *parent)
retranslateUi();
resize(900, 700);
restoreGeometry(settingsCache->getMainWindowGeometry());
if (!restoreGeometry(settingsCache->getMainWindowGeometry())) {
setWindowState(Qt::WindowMaximized);
}
aFullScreen->setChecked(static_cast<bool>(windowState() & Qt::WindowFullScreen));
if (QSystemTrayIcon::isSystemTrayAvailable()) {