mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Bring window to front after restoring from systray
This commit is contained in:
parent
d31d935522
commit
f4320cb58a
@ -706,6 +706,8 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) {
|
|||||||
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
|
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
|
||||||
// Then show it
|
// Then show it
|
||||||
show();
|
show();
|
||||||
|
raise();
|
||||||
|
activateWindow();
|
||||||
}else{
|
}else{
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user