mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Merge pull request #7272 from vit9696/patch-1
Fix macOS window restoration after using hide icon
This commit is contained in:
commit
f98edcab5c
1 changed files with 1 additions and 4 deletions
|
@ -1285,14 +1285,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…
Reference in a new issue