1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 17:11:17 +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, bool CommandManager::HandleCommandEntry(const CommandListEntry * entry,
CommandFlag flags, CommandMask mask, const wxEvent * evt) CommandFlag flags, CommandMask mask, const wxEvent * evt)
{ {
if (!entry || !entry->enabled) if (!entry )
return false;
if (flags != AlwaysEnabledFlag && !entry->enabled)
return false; return false;
auto proj = GetActiveProject(); auto proj = GetActiveProject();