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:
parent
5c044c0cea
commit
f3903276c9
@ -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();
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user