Skip to content

Commit

Permalink
qtenv: Remove another menu bar related workaround on macOS from Qtenv
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Nov 9, 2023
1 parent a139157 commit edc1a8a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/qtenv/qtenvapp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1781,16 +1781,6 @@ void QtenvApp::initialSetUpConfiguration()
// defaultConfig and runFilter are what were specified in either the omnetpp.ini file or as a command line argument
RunSelectionDialog dialog(ini, opt->defaultConfig, opt->runFilter, mainWindow);

#ifdef QT_OS_MAC
// Makes the Apple Menu work on Mac (together with TransformProcessType) right
// after launch even if there is no need to actually pick a configuration.
// Even if the dialog doesn't really appear on the screen (in fact I hope it
// doesn't, that would cause flickering), if shown first, it will do some
// magic with window focus passing when destroyed, which is similar to
// switching apps, which then makes the global menu work for some reason.
dialog.show();
#endif

// only show if needed, but if cancelled, stop.
if (dialog.needsShowing() && !dialog.exec())
return;
Expand Down

0 comments on commit edc1a8a

Please sign in to comment.