mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-01 12:04:49 +02: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:
@@ -330,11 +330,8 @@ void DoPause( AudacityProject &project )
|
||||
|
||||
void DoRecord( AudacityProject &project )
|
||||
{
|
||||
wxCommandEvent evt;
|
||||
evt.SetInt(2); // 0 is default, use 1 to set shift on, 2 to clear it
|
||||
|
||||
auto &controlToolBar = ControlToolBar::Get( project );
|
||||
controlToolBar.OnRecord(evt);
|
||||
controlToolBar.OnRecord(false);
|
||||
}
|
||||
|
||||
void DoLockPlayRegion( AudacityProject &project )
|
||||
|
||||
Reference in New Issue
Block a user