settings: add option to minimize to tray

This commit is contained in:
tobtoht
2025-03-04 15:31:34 +01:00
parent e55afe9429
commit bb1015731f
7 changed files with 68 additions and 25 deletions
+3
View File
@@ -1255,6 +1255,9 @@ void MainWindow::changeEvent(QEvent* event)
if (conf()->get(Config::lockOnMinimize).toBool()) {
this->lockWallet();
}
if (conf()->get(Config::showTrayIcon).toBool() && conf()->get(Config::minimizeToTray).toBool()) {
this->hide();
}
} else {
QMainWindow::changeEvent(event);
}