1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-01 18:16:45 +01:00

MainWindow: Change close() to hide() in SetHiddenInTray

Otherwise close event is triggered causing Strawberry to quit.
This commit is contained in:
Jonas Kvinge 2025-01-19 09:45:13 +01:00
parent 911237e281
commit 159be5d79e

View File

@ -1695,7 +1695,7 @@ void MainWindow::closeEvent(QCloseEvent *e) {
void MainWindow::SetHiddenInTray(const bool hidden) {
if (hidden && isVisible()) {
close();
hide();
}
else if (!hidden && isHidden()) {
if (was_minimized_) {