mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Another overload of ControlToolBar::OnRecord taking bool...
... so that it's called directly where needed without the roundabout of SetInt in an event, and there is no checking of the state of a button first
This commit is contained in:
@@ -247,11 +247,8 @@ void OnRecord(const CommandContext &context)
|
||||
void OnRecord2ndChoice(const CommandContext &context)
|
||||
{
|
||||
auto &project = context.project;
|
||||
wxCommandEvent evt;
|
||||
evt.SetInt(1); // 0 is default, use 1 to set shift on, 2 to clear it
|
||||
|
||||
auto &controlToolBar = ControlToolBar::Get( project );
|
||||
controlToolBar.OnRecord(evt);
|
||||
controlToolBar.OnRecord(true);
|
||||
}
|
||||
|
||||
void OnTimerRecord(const CommandContext &context)
|
||||
|
||||
Reference in New Issue
Block a user