1
0
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:
Paul Licameli
2019-06-27 23:01:53 -04:00
parent 7d504ba015
commit 8b549ea07f
4 changed files with 11 additions and 15 deletions

View File

@@ -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 )