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