mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
settings: add option to minimize to tray
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user