Skip to content

Commit

Permalink
Process app startup events before showing splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cme committed Apr 17, 2021
1 parent ab1e534 commit dc64790
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ int main(int argc, char *argv[])
pQApp->setApplicationName( "Hydrogen" );
pQApp->setApplicationVersion( QString::fromStdString( H2Core::get_version() ) );

// Process any pending events before showing splash screen. This allows macOS to show previous-crash
// warning dialogs before they are covered by the splash screen.
pQApp->processEvents();

QString family = pPref->getApplicationFontFamily();
pQApp->setFont( QFont( family, pPref->getApplicationFontPointSize() ) );

Expand Down

0 comments on commit dc64790

Please sign in to comment.