diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bad3fd6b6..c47ae0480 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -702,9 +702,10 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) { if (!unlockUI()) return; } + // Make sure the window is not minimized + setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); + // Then show it show(); - raise(); - activateWindow(); }else{ hide(); }