1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

Implement "bring all to front" on Mac (really deminiaturizes all)...

... (which is not exactly the standard behavior.)
This commit is contained in:
Paul Licameli 2016-06-28 18:38:24 -04:00
parent 302ac247e1
commit 2beacb5396
2 changed files with 7 additions and 2 deletions

View File

@ -1036,12 +1036,12 @@ void AudacityProject::CreateMenusAndCommands()
* window) full sized */
c->AddItem(wxT("MacZoom"), _("&Zoom"), FN(OnMacZoom),
wxT(""), NotMinimizedFlag, NotMinimizedFlag);
#if 0
c->AddSeparator();
/* i18n-hint: Standard Macintosh Window menu item: Make all project
* windows un-hidden */
c->AddItem(wxT("MacBringAllToFront"),
_("&Bring All to Front"), FN(OnMacBringAllToFront),
wxT(""), AlwaysEnabledFlag, AlwaysEnabledFlag);
#endif
c->EndMenu();
}
#endif

View File

@ -72,4 +72,9 @@ void AudacityProject::OnMacZoom()
void AudacityProject::OnMacBringAllToFront()
{
// Reall this de-miniaturizes all, which is not exactly the standard
// behavior.
for (const auto project : gAudacityProjects) {
project->Raise();
}
}