Start in maximized window on first start (#3075)
This commit is contained in:
parent
517420cccb
commit
63d0f5af43
1 changed files with 3 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue