Skip to content

Commit

Permalink
fix broken focus behavior on macOS after showing root warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kambala-decapitator committed Feb 19, 2024
1 parent 3afc723 commit 530d5e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ Creator::Creator(Privileges &privilegesArg, QWidget *parent) :
}

setAcceptDrops(true); // allow droping files on a window
showRootMessageBox();

// singleShot fixes broken focus behavior if the message is shown on macOS
QTimer::singleShot(0, this, &Creator::showRootMessageBox);

// call web browser through our wrapper for Linux
QDesktopServices::setUrlHandler("http", this, "httpsUrlHandler");
Expand Down

0 comments on commit 530d5e4

Please sign in to comment.