fix: macOS flicker when menu is first clicked if the app is set to autohide on startup
fixes: #9523
This commit is contained in:
parent
814d63af28
commit
fc1f3b0142
1 changed files with 7 additions and 1 deletions
|
|
@ -605,7 +605,13 @@ void MainWindow::serverConnectionConfigureClient(const QString &clientName)
|
||||||
|
|
||||||
void MainWindow::open()
|
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
|
// 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
|
// load), it will be hidden behind the main window. therefore we need to raise
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue