mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Bring window to front after restoring from systray
This commit is contained in:
parent
d31d935522
commit
f4320cb58a
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue