mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01:00
MenuCommandHandler is not a base class of MenuManager...
... This forces a better placement of state variables in the appropriate classes. In future perhaps, MenuManager should be splintered into several classes, one for each of the main toolbar menus.
This commit is contained in:
committed by
James Crook
parent
d693b36bdb
commit
fc6570646d
@@ -1054,7 +1054,7 @@ bool ControlToolBar::DoRecord(AudacityProject &project,
|
||||
CommandFlag flags = AlwaysEnabledFlag; // 0 means recalc flags.
|
||||
|
||||
// NB: The call may have the side effect of changing flags.
|
||||
bool allowed = GetMenuCommandHandler(project).TryToMakeActionAllowed(
|
||||
bool allowed = GetMenuManager(project).TryToMakeActionAllowed(
|
||||
project,
|
||||
flags,
|
||||
AudioIONotBusyFlag | CanStopAudioStreamFlag,
|
||||
|
||||
Reference in New Issue
Block a user