diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index 8353f076e..0b98b9e31 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -605,7 +605,13 @@ void MainWindow::serverConnectionConfigureClient(const QString &clientName) void MainWindow::open() { - Settings::value(Settings::Gui::Autohide).toBool() ? hide() : showAndActivate(); + if (!Settings::value(Settings::Gui::Autohide).toBool()) + showAndActivate(); + else if (deskflow::platform::isMac()) + // macOS to call hide after this function ends + QTimer::singleShot(1, this, &MainWindow::hide); + else + hide(); // if a critical error was shown just before the main window (i.e. on app // load), it will be hidden behind the main window. therefore we need to raise