mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
More apt argument name
This commit is contained in:
parent
8e51391b98
commit
ed660bdca2
src/toolbars
@ -517,11 +517,11 @@ void ControlToolBar::SetStop(bool down)
|
|||||||
EnableDisableButtons();
|
EnableDisableButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ControlToolBar::SetRecord(bool down, bool append)
|
void ControlToolBar::SetRecord(bool down, bool altAppearance)
|
||||||
{
|
{
|
||||||
if (down)
|
if (down)
|
||||||
{
|
{
|
||||||
mRecord->SetAlternateIdx(append ? 1 : 0);
|
mRecord->SetAlternateIdx(altAppearance ? 1 : 0);
|
||||||
mRecord->PushDown();
|
mRecord->PushDown();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1025,16 +1025,14 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
|||||||
if (evt.GetInt() == 2)
|
if (evt.GetInt() == 2)
|
||||||
mRecord->SetShift(false);
|
mRecord->SetShift(false);
|
||||||
|
|
||||||
SetRecord(true, mRecord->WasShiftDown());
|
bool altAppearance = mRecord->WasShiftDown();
|
||||||
|
SetRecord(true, altAppearance);
|
||||||
|
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
||||||
bool appendRecord = mRecord->WasShiftDown();
|
|
||||||
|
|
||||||
bool bPreferNewTrack;
|
bool bPreferNewTrack;
|
||||||
gPrefs->Read("/GUI/PreferNewTrackRecord", &bPreferNewTrack, false);
|
gPrefs->Read("/GUI/PreferNewTrackRecord", &bPreferNewTrack, false);
|
||||||
if (!bPreferNewTrack)
|
bool appendRecord = (altAppearance == bPreferNewTrack);
|
||||||
appendRecord = !appendRecord;
|
|
||||||
|
|
||||||
auto cleanup = finally([&] {
|
auto cleanup = finally([&] {
|
||||||
if (!success) {
|
if (!success) {
|
||||||
|
@ -83,7 +83,7 @@ class ControlToolBar final : public ToolBar {
|
|||||||
//These allow buttons to be controlled externally:
|
//These allow buttons to be controlled externally:
|
||||||
void SetPlay(bool down, PlayAppearance appearance = PlayAppearance::Straight);
|
void SetPlay(bool down, PlayAppearance appearance = PlayAppearance::Straight);
|
||||||
void SetStop(bool down);
|
void SetStop(bool down);
|
||||||
void SetRecord(bool down, bool append=false);
|
void SetRecord(bool down, bool altAppearance = false);
|
||||||
|
|
||||||
bool IsPauseDown() const;
|
bool IsPauseDown() const;
|
||||||
bool IsRecordDown() const;
|
bool IsRecordDown() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user