mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-18 17:10:05 +02:00
minor cleanup in AudacityProject::OnPlayStopSelect
This commit is contained in:
parent
2df6400213
commit
369ebe40a4
@ -1862,12 +1862,11 @@ void AudacityProject::OnPlayStopSelect()
|
|||||||
if (gAudioIO->IsStreamActive(GetAudioIOToken())) {
|
if (gAudioIO->IsStreamActive(GetAudioIOToken())) {
|
||||||
toolbar->SetPlay(false); //Pops
|
toolbar->SetPlay(false); //Pops
|
||||||
toolbar->SetStop(true); //Pushes stop down
|
toolbar->SetStop(true); //Pushes stop down
|
||||||
// toolbar->StopPlaying();
|
|
||||||
mViewInfo.sel0 = gAudioIO->GetStreamTime();
|
mViewInfo.sel0 = gAudioIO->GetStreamTime();
|
||||||
if( mViewInfo.sel1 < mViewInfo.sel0 ) {
|
if( mViewInfo.sel1 < mViewInfo.sel0 ) {
|
||||||
mViewInfo.sel1 = mViewInfo.sel0;
|
mViewInfo.sel1 = mViewInfo.sel0;
|
||||||
}
|
}
|
||||||
GetControlToolBar()->OnStop(evt);
|
toolbar->OnStop(evt);
|
||||||
ModifyState();
|
ModifyState();
|
||||||
}
|
}
|
||||||
else if (!gAudioIO->IsBusy()) {
|
else if (!gAudioIO->IsBusy()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user