mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix window visibility toggling bug with "minimized to systray" enabled
The issue seemed to affect Windows only.
This commit is contained in:
parent
33147d842c
commit
d7eb29ab71
1 changed files with 3 additions and 2 deletions
|
@ -701,9 +701,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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue