Browse Source

Fix macOS window restoration after using hide icon

adaptive-webui-19844
vit9696 7 years ago committed by GitHub
parent
commit
16d7301046
  1. 5
      src/gui/mainwindow.cpp

5
src/gui/mainwindow.cpp

@ -1283,14 +1283,11 @@ static bool dockClickHandler(id self, SEL cmd, ...) @@ -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…
Cancel
Save