Skip to content

Commit

Permalink
Github #210
Browse files Browse the repository at this point in the history
  • Loading branch information
minstral committed Jul 11, 2022
1 parent 093d4fb commit 376ea66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/apple/BEMacFunctions.mm
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ const int DisplayDialog ( std::wstring& title, std::wstring& message, std::wstri
[progressDialog show: title_string description: description_string maximumValue: maximum canCancel: can_cancel];

// force fmp to display the dialog immediately - Jira #26
[NSApp runModalForWindow: (NSWindow *)progressDialog];
[NSApp stopModal];
auto session = [NSApp beginModalSessionForWindow: [progressDialog window]];
[NSApp runModalSession: session];
[NSApp endModalSession: session];

} else {
error = kWindowIsMissingError;
Expand Down

0 comments on commit 376ea66

Please sign in to comment.