1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Scrolling display for (append-) record, if you double click

This commit is contained in:
Paul Licameli 2016-05-17 01:47:52 -04:00
parent 12fca6a304
commit 95ccc417d8

View File

@ -401,7 +401,7 @@ void ControlToolBar::EnableDisableButtons()
bool playing = mPlay->IsDown();
bool recording = mRecord->IsDown();
bool notBusy = !gAudioIO->IsBusy();
bool busy = gAudioIO->IsBusy();
// Only interested in audio type tracks
if (p) {
@ -425,7 +425,11 @@ void ControlToolBar::EnableDisableButtons()
}
mPlay->SetEnabled(CanStopAudioStream() && tracks && !recording);
mRecord->SetEnabled(CanStopAudioStream() && notBusy && !playing);
mRecord->SetEnabled(
CanStopAudioStream() &&
!(busy && !recording) &&
!playing
);
mStop->SetEnabled(CanStopAudioStream() && (playing || recording));
mRewind->SetEnabled(!playing && !recording);
mFF->SetEnabled(tracks && !playing && !recording);
@ -847,6 +851,14 @@ void ControlToolBar::Pause()
void ControlToolBar::OnRecord(wxCommandEvent &evt)
{
auto doubleClicked = mRecord->IsDoubleClicked();
mRecord->ClearDoubleClicked();
if (doubleClicked) {
GetActiveProject()->GetPlaybackScroller().Activate(true);
return;
}
if (gAudioIO->IsBusy()) {
mRecord->PopUp();
return;