fix: Gui save and restore the window when closing and restoring to the tray
This commit is contained in:
committed by
Chris Rizzitello
parent
aca08a5e74
commit
999f174441
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user