1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Uncheck scrubbing menu items whenever scrub stops (ESC key, Stop button, other)

This commit is contained in:
Paul Licameli
2016-04-24 11:59:01 -04:00
parent e0c80a8d20
commit 1fe0bbf7dc
4 changed files with 18 additions and 19 deletions

View File

@@ -773,6 +773,12 @@ void ControlToolBar::PlayDefault()
void ControlToolBar::StopPlaying(bool stopStream /* = true*/)
{
AudacityProject *project = GetActiveProject();
if(project)
// Let scrubbing code do some appearance change
project->GetScrubber().StopScrubbing();
if (!CanStopAudioStream())
return;
@@ -798,7 +804,6 @@ void ControlToolBar::StopPlaying(bool stopStream /* = true*/)
mBusyProject = NULL;
// So that we continue monitoring after playing or recording.
// also clean the MeterQueues
AudacityProject *project = GetActiveProject();
if( project ) {
project->MayStartMonitoring();