mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 14:18:53 +02:00
Bug 1547
Fix some 'on pause' inconsistencies.
This commit is contained in:
parent
e736bf5efc
commit
3a9983795f
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user