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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user