parent
abeb580228
commit
5844616ea8
@ -1330,12 +1330,12 @@ void MainWindow::closeEvent(QCloseEvent *event) {
|
|||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
if (keep_running && event->spontaneous() && QSystemTrayIcon::isSystemTrayAvailable()) {
|
if (keep_running && event->spontaneous() && QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||||
|
event->ignore();
|
||||||
SetHiddenInTray(true);
|
SetHiddenInTray(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Exit();
|
Exit();
|
||||||
}
|
}
|
||||||
event->ignore();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1352,6 +1352,7 @@ void MainWindow::SetHiddenInTray(bool hidden) {
|
|||||||
if (was_maximized_) showMaximized();
|
if (was_maximized_) showMaximized();
|
||||||
else show();
|
else show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::FilePathChanged(const QString &path) {
|
void MainWindow::FilePathChanged(const QString &path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user