1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 14:13:11 +02:00

Enh66: About dialog is modeless on Mac, consistent with other apps

This commit is contained in:
Paul Licameli 2016-06-20 12:41:09 -04:00
parent 5c044c0cea
commit f3903276c9
2 changed files with 7 additions and 2 deletions

View File

@ -2035,8 +2035,13 @@ void AudacityApp::OnMenuAbout(wxCommandEvent & event)
// this happens, and enable the same code to be present on
// all platforms.
if(gAudacityProjects.GetCount() == 0) {
#ifdef __WXMAC__
// Modeless dialog, consistent with other Mac applications
(safenew AboutDialog{ nullptr })->Show(true);
#else
AboutDialog dlog(NULL);
dlog.ShowModal();
#endif
}
else
event.Skip();

View File

@ -6606,8 +6606,8 @@ void AudacityProject::OnRemoveTracks()
void AudacityProject::OnAbout()
{
AboutDialog dlog(this);
dlog.ShowModal();
// Modeless dialog, consistent with other Mac applications
(safenew AboutDialog{ nullptr })->Show(true);
}
void AudacityProject::OnHelpWelcome()