mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix macOS window restoration after using hide icon
This commit is contained in:
parent
e2893fe68f
commit
16d7301046
1 changed files with 1 additions and 4 deletions
|
@ -1283,14 +1283,11 @@ static bool dockClickHandler(id self, SEL cmd, ...)
|
|||
Q_UNUSED(self)
|
||||
Q_UNUSED(cmd)
|
||||
|
||||
qDebug("Dock icon clicked!");
|
||||
|
||||
if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) {
|
||||
dockMainWindowHandle->activate();
|
||||
}
|
||||
|
||||
// Return NO (false) to suppress the default OS X actions
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void MainWindow::setupDockClickHandler()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue