mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix macOS window restoration after using hide icon
This commit is contained in:
@@ -1283,14 +1283,11 @@ static bool dockClickHandler(id self, SEL cmd, ...)
|
|||||||
Q_UNUSED(self)
|
Q_UNUSED(self)
|
||||||
Q_UNUSED(cmd)
|
Q_UNUSED(cmd)
|
||||||
|
|
||||||
qDebug("Dock icon clicked!");
|
|
||||||
|
|
||||||
if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) {
|
if (dockMainWindowHandle && !dockMainWindowHandle->isVisible()) {
|
||||||
dockMainWindowHandle->activate();
|
dockMainWindowHandle->activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return NO (false) to suppress the default OS X actions
|
return true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::setupDockClickHandler()
|
void MainWindow::setupDockClickHandler()
|
||||||
|
|||||||
Reference in New Issue
Block a user