From 999f174441dd8a6f79de36dfde310b0c65542e9e Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 11 Nov 2025 15:10:51 -0500 Subject: [PATCH] fix: Gui save and restore the window when closing and restoring to the tray --- src/lib/gui/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index ad0e0ffe4..2455d9833 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -857,6 +857,7 @@ void MainWindow::closeEvent(QCloseEvent *event) messages::showCloseReminder(this); Settings::setValue(Settings::Gui::CloseReminder, false); } + Settings::setValue(Settings::Gui::WindowGeometry, geometry()); qDebug() << "hiding to tray"; hide(); event->ignore(); @@ -1113,6 +1114,7 @@ void MainWindow::showAndActivate() activateWindow(); m_actionRestore->setVisible(false); m_actionMinimize->setVisible(true); + restoreWindow(); } void MainWindow::showHostNameEditor()