mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 18:04:32 +00: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
@ -702,9 +702,10 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) {
|
|||||||
if (!unlockUI())
|
if (!unlockUI())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Make sure the window is not minimized
|
||||||
|
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
|
||||||
|
// Then show it
|
||||||
show();
|
show();
|
||||||
raise();
|
|
||||||
activateWindow();
|
|
||||||
}else{
|
}else{
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user