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:
parent
911237e281
commit
159be5d79e
@ -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_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user