1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 12:42:03 +01:00

Revert changes for Bug 1119 made by Paul.

These changes were made too close to release and are considered too dangerous for 2.4.0.
We will use the changes Leland provided.  We can review these proposed changes by Paul after 2.4.0 is released.
This commit is contained in:
James Crook
2020-04-21 17:45:16 +01:00
parent c3d0d0370b
commit 018a8681ef
8 changed files with 152 additions and 106 deletions

View File

@@ -24,7 +24,9 @@ Paul Licameli split from AudacityProject.cpp
#include "widgets/AudacityMessageBox.h"
#include "widgets/NumericTextCtrl.h"
wxDEFINE_EVENT(EVT_PROJECT_TITLE_CHANGE, wxCommandEvent);
#if defined(__WXMAC__)
#include "menus/WindowMenus.h"
#endif
static void RefreshAllTitles(bool bShowProjectNumbers )
{
@@ -132,13 +134,13 @@ void ProjectFileIO::SetProjectTitle( int number)
name += _("(Recovered)");
}
if ( name != window.GetTitle() ) {
window.SetTitle( name );
window.SetName(name); // to make the nvda screen reader read the correct title
window.SetTitle( name );
window.SetName(name); // to make the nvda screen reader read the correct title
project.QueueEvent(
safenew wxCommandEvent{ EVT_PROJECT_TITLE_CHANGE } );
}
#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.