mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 09:31:13 +02:00
Scrolling display for (append-) record, if you double click
This commit is contained in:
parent
12fca6a304
commit
95ccc417d8
@ -401,7 +401,7 @@ void ControlToolBar::EnableDisableButtons()
|
|||||||
|
|
||||||
bool playing = mPlay->IsDown();
|
bool playing = mPlay->IsDown();
|
||||||
bool recording = mRecord->IsDown();
|
bool recording = mRecord->IsDown();
|
||||||
bool notBusy = !gAudioIO->IsBusy();
|
bool busy = gAudioIO->IsBusy();
|
||||||
|
|
||||||
// Only interested in audio type tracks
|
// Only interested in audio type tracks
|
||||||
if (p) {
|
if (p) {
|
||||||
@ -425,7 +425,11 @@ void ControlToolBar::EnableDisableButtons()
|
|||||||
}
|
}
|
||||||
|
|
||||||
mPlay->SetEnabled(CanStopAudioStream() && tracks && !recording);
|
mPlay->SetEnabled(CanStopAudioStream() && tracks && !recording);
|
||||||
mRecord->SetEnabled(CanStopAudioStream() && notBusy && !playing);
|
mRecord->SetEnabled(
|
||||||
|
CanStopAudioStream() &&
|
||||||
|
!(busy && !recording) &&
|
||||||
|
!playing
|
||||||
|
);
|
||||||
mStop->SetEnabled(CanStopAudioStream() && (playing || recording));
|
mStop->SetEnabled(CanStopAudioStream() && (playing || recording));
|
||||||
mRewind->SetEnabled(!playing && !recording);
|
mRewind->SetEnabled(!playing && !recording);
|
||||||
mFF->SetEnabled(tracks && !playing && !recording);
|
mFF->SetEnabled(tracks && !playing && !recording);
|
||||||
@ -847,6 +851,14 @@ void ControlToolBar::Pause()
|
|||||||
|
|
||||||
void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
||||||
{
|
{
|
||||||
|
auto doubleClicked = mRecord->IsDoubleClicked();
|
||||||
|
mRecord->ClearDoubleClicked();
|
||||||
|
|
||||||
|
if (doubleClicked) {
|
||||||
|
GetActiveProject()->GetPlaybackScroller().Activate(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (gAudioIO->IsBusy()) {
|
if (gAudioIO->IsBusy()) {
|
||||||
mRecord->PopUp();
|
mRecord->PopUp();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user