mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Bring window to front after restoring from systray
This commit is contained in:
parent
e1933e9382
commit
b3aec8e6f9
1 changed files with 2 additions and 0 deletions
|
@ -705,6 +705,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