MainWindow: Change close() to hide() in SetHiddenInTray
Otherwise close event is triggered causing Strawberry to quit.
This commit is contained in:
@@ -1695,7 +1695,7 @@ void MainWindow::closeEvent(QCloseEvent *e) {
|
|||||||
void MainWindow::SetHiddenInTray(const bool hidden) {
|
void MainWindow::SetHiddenInTray(const bool hidden) {
|
||||||
|
|
||||||
if (hidden && isVisible()) {
|
if (hidden && isVisible()) {
|
||||||
close();
|
hide();
|
||||||
}
|
}
|
||||||
else if (!hidden && isHidden()) {
|
else if (!hidden && isHidden()) {
|
||||||
if (was_minimized_) {
|
if (was_minimized_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user