1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 14:18:53 +02:00
Fix some 'on pause' inconsistencies.
This commit is contained in:
Steve Daulton 2016-11-08 15:46:11 +00:00
parent e736bf5efc
commit 3a9983795f
2 changed files with 6 additions and 2 deletions

View File

@ -4734,6 +4734,8 @@ void TrackPanel::HandleClosing(wxMouseEvent & event)
else if (event.LeftUp()) {
mTrackInfo.DrawCloseBox(&dc, rect, false);
if (closeRect.Contains(event.m_x, event.m_y)) {
AudacityProject *p = GetProject();
p->StopIfPaused();
if (!IsUnsafe())
GetProject()->RemoveTrack(t);
}

View File

@ -442,8 +442,8 @@ void ControlToolBar::EnableDisableButtons()
!playing
);
mStop->SetEnabled(CanStopAudioStream() && (playing || recording));
mRewind->SetEnabled(!playing && !recording);
mFF->SetEnabled(tracks && !playing && !recording);
mRewind->SetEnabled(IsPauseDown() || (!playing && !recording));
mFF->SetEnabled(tracks && (IsPauseDown() || (!playing && !recording)));
//auto pProject = GetActiveProject();
mPause->SetEnabled(CanStopAudioStream());
@ -1158,6 +1158,7 @@ void ControlToolBar::OnRewind(wxCommandEvent & WXUNUSED(evt))
AudacityProject *p = GetActiveProject();
if (p) {
p->StopIfPaused();
p->Rewind(mRewind->WasShiftDown());
}
}
@ -1170,6 +1171,7 @@ void ControlToolBar::OnFF(wxCommandEvent & WXUNUSED(evt))
AudacityProject *p = GetActiveProject();
if (p) {
p->StopIfPaused();
p->SkipEnd(mFF->WasShiftDown());
}
}