mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 00:20:06 +02:00
Fix for bug #804
But, I did leave in the disabling/enabling of the transcription toolbar play button when recording. Thought that was a good idea.
This commit is contained in:
parent
2c6401b564
commit
7108b71f5d
@ -391,23 +391,13 @@ void ControlToolBar::EnableDisableButtons()
|
||||
void ControlToolBar::SetPlay(bool down, bool looped, bool cutPreview)
|
||||
{
|
||||
AudacityProject *p = GetActiveProject();
|
||||
TranscriptionToolBar *const pttb =
|
||||
p ? p->GetTranscriptionToolBar(): 0;
|
||||
if (down) {
|
||||
mPlay->SetAlternateIdx(cutPreview ? 2 : looped ? 1 : 0);
|
||||
mPlay->PushDown();
|
||||
if (pttb)
|
||||
// This disables cursor changes for modifier keys
|
||||
// in the other play button too
|
||||
pttb->SetPlaying(true, looped, cutPreview);
|
||||
}
|
||||
else {
|
||||
mPlay->PopUp();
|
||||
mPlay->SetAlternateIdx(0);
|
||||
if (pttb)
|
||||
// This reenables cursor changes for modifier keys
|
||||
// in the other play button too
|
||||
pttb->SetPlaying(false, looped, cutPreview);
|
||||
}
|
||||
EnableDisableButtons();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user