1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Bug 1119 - Mac: Window menu's list of open windows not available

This commit is contained in:
Leland Lucius
2020-04-18 01:49:17 -05:00
parent 7ecaed079c
commit 18cbc2e574
5 changed files with 138 additions and 4 deletions

View File

@@ -24,6 +24,10 @@ Paul Licameli split from AudacityProject.cpp
#include "widgets/AudacityMessageBox.h"
#include "widgets/NumericTextCtrl.h"
#if defined(__WXMAC__)
#include "menus/WindowMenus.h"
#endif
static void RefreshAllTitles(bool bShowProjectNumbers )
{
for ( auto pProject : AllProjects{} ) {
@@ -132,6 +136,11 @@ void ProjectFileIO::SetProjectTitle( int number)
window.SetTitle( name );
window.SetName(name); // to make the nvda screen reader read the correct title
#if defined(__WXMAC__)
// Refresh the Window menu
WindowActions::Refresh();
#endif
}
// Most of this string was duplicated 3 places. Made the warning consistent in this global.