1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-05 12:56:52 +01:00

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

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 {