Skip to content

Commit

Permalink
MainWindow: Change close() to hide() in SetHiddenInTray
Browse files Browse the repository at this point in the history
Otherwise close event is triggered causing Strawberry to quit.
  • Loading branch information
jonaski committed Jan 19, 2025
1 parent 911237e commit 159be5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_) {
Expand Down

0 comments on commit 159be5d

Please sign in to comment.