1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 16:41:14 +02:00

TrackPanelHasFocus commands now always available to Macros

Previously running a TrackPanelHasFocus effect from the Macros dialog could fail, because the menu item was disabled (because track panel did not have focus).
This commit is contained in:
James Crook 2018-08-13 16:33:40 +01:00
parent 8eef6dc3ef
commit b2feab61a9

View File

@ -1559,7 +1559,10 @@ bool CommandManager::FilterKeyEvent(AudacityProject *project, const wxKeyEvent &
bool CommandManager::HandleCommandEntry(const CommandListEntry * entry,
CommandFlag flags, CommandMask mask, const wxEvent * evt)
{
if (!entry || !entry->enabled)
if (!entry )
return false;
if (flags != AlwaysEnabledFlag && !entry->enabled)
return false;
auto proj = GetActiveProject();