MainWindow: Remove QEvent::spontaneous() check in close event

Fixes #964
This commit is contained in:
Jonas Kvinge 2022-05-21 19:09:46 +02:00
parent f231f28818
commit 36eb131289
1 changed files with 1 additions and 1 deletions

View File

@ -1597,7 +1597,7 @@ void MainWindow::showEvent(QShowEvent *e) {
void MainWindow::closeEvent(QCloseEvent *e) {
if (!exit_) {
if (!hidden_ && keep_running_ && e->spontaneous() && tray_icon_->IsSystemTrayAvailable()) {
if (!hidden_ && keep_running_ && tray_icon_->IsSystemTrayAvailable()) {
SetHiddenInTray(true);
}
else {