mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Merge 8c9ec7ec6a
into b7a43ea118
This commit is contained in:
commit
5d2425e32c
1 changed files with 17 additions and 1 deletions
|
@ -418,7 +418,23 @@ MainWindow::MainWindow(IGUIApplication *app, const WindowState initialState, con
|
|||
if (!isVisible())
|
||||
activate();
|
||||
#else
|
||||
toggleVisibility();
|
||||
if (isActiveWindow())
|
||||
{
|
||||
hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_uiLocked && !unlockUI()) // Ask for UI lock password
|
||||
return;
|
||||
|
||||
// Make sure the window is not minimized
|
||||
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
|
||||
|
||||
// Then show it
|
||||
show();
|
||||
raise();
|
||||
activateWindow();
|
||||
}
|
||||
#endif
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue