mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Fix window visibility toggling bug with "minimized to systray" enabled
The issue seemed to affect Windows only.
This commit is contained in:
parent
8d612e8e2d
commit
d26179cca0
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue