1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 14:18:41 +02:00

Bug 1925 - Applying <macroname> to current project window: visual noise, and accessibility.

For accessibility, not showing the activity window is better.
This commit is contained in:
James Crook 2018-08-10 12:23:30 +01:00
parent 154f6d25d9
commit 9d396e3315

View File

@ -246,6 +246,7 @@ void ApplyMacroDialog::ApplyMacroToProject( int iMacro, bool bHasGui )
if( name.IsEmpty() )
return;
#ifdef OPTIONAL_ACTIVITY_WINDOW
wxDialogWrapper activityWin( this, wxID_ANY, GetTitle());
activityWin.SetName(activityWin.GetTitle());
ShuttleGui S(&activityWin, eIsCreating);
@ -273,6 +274,7 @@ void ApplyMacroDialog::ApplyMacroToProject( int iMacro, bool bHasGui )
// Without this the newly created dialog may not show completely.
wxYield();
#endif
//Since we intend to keep this dialog open, there is no reason to hide it
//and then show it again.
@ -288,7 +290,9 @@ void ApplyMacroDialog::ApplyMacroToProject( int iMacro, bool bHasGui )
// the menus on OSX will remain disabled.
bool success;
{
#ifdef OPTIONAL_ACTIVITY_WINDOW
wxWindowDisabler wd(&activityWin);
#endif
success = GuardedCall< bool >(
[this]{ return mMacroCommands.ApplyMacro(mCatalog); } );
}