fix: Gui save and restore the window when closing and restoring to the tray

This commit is contained in:
sithlord48
2025-11-11 15:10:51 -05:00
committed by Chris Rizzitello
parent aca08a5e74
commit 999f174441

View File

@ -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()