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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user