From c2b1f5ab85f37f9bb2b499a3cf0ee8cf3c775c58 Mon Sep 17 00:00:00 2001 From: garak Date: Tue, 29 Apr 2025 09:49:53 -0400 Subject: [PATCH] fix geometry setting before window exists --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index aa296779..5fc5dfd6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -93,6 +93,8 @@ void MainWindow::initialize() { this->checkForUpdates(false); porysplash->close(); + + this->restoreWindowState(); this->show(); } @@ -150,7 +152,6 @@ void MainWindow::initWindow() { this->initMiscHeapObjects(); this->initMapList(); this->initShortcuts(); - this->restoreWindowState(); #ifndef RELEASE_PLATFORM ui->actionCheck_for_Updates->setVisible(false);