1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-01 12:04:49 +02:00

Pop up the Stop button in idle time...

... This also causes a momentary push-down of the stop button, which happens
in ControlToolBar::StopPlaying, really to be visible, as was apparently the
intent.

For instance, when playing, then clicking in the quick-play ruler to restart
the play elsewhere.
This commit is contained in:
Paul Licameli
2019-07-01 08:53:53 -04:00
parent 830f772625
commit 5ab3986261
4 changed files with 11 additions and 31 deletions

View File

@@ -277,7 +277,7 @@ bool DoPlayStopSelect
//If busy, stop playing, make sure everything is unpaused.
if (scrubber.HasMark() ||
gAudioIO->IsStreamActive(token)) {
toolbar.SetStop(true); //Pushes stop down
toolbar.SetStop(); //Pushes stop down
// change the selection
auto time = gAudioIO->GetStreamTime();
@@ -332,7 +332,6 @@ void DoPlayStopSelect(AudacityProject &project)
toolbar.OnStop(evt);
else if (!gAudioIO->IsBusy()) {
//Otherwise, start playing (assuming audio I/O isn't busy)
toolbar.SetStop(false);
// Will automatically set mLastPlayMode
toolbar.PlayCurrentRegion(false);