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:
parent
8eef6dc3ef
commit
b2feab61a9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user