1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-04 07:40:12 +01:00

Persist looped button across toolbar resets...

...when started from the keyboard.
This commit is contained in:
lllucius
2015-01-03 11:27:24 +00:00
parent 7aa81bc34d
commit 3a098714d9
5 changed files with 13 additions and 5 deletions

View File

@@ -424,6 +424,8 @@ void ControlToolBar::SetPlay(bool down, bool looped, bool cutPreview)
{
AudacityProject *p = GetActiveProject();
if (down) {
mPlay->SetShift(looped);
mPlay->SetControl(cutPreview);
mPlay->SetAlternateIdx(cutPreview ? 2 : looped ? 1 : 0);
mPlay->PushDown();
}