1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-07 23:51:14 +02:00

Always Record on a new Track Pref.

Changed pref name, now unticked by default.
This commit is contained in:
James Crook 2017-07-09 14:07:56 +01:00
parent 71a75fc28d
commit e3a822c34d
3 changed files with 15 additions and 15 deletions

View File

@ -839,12 +839,12 @@ void AudacityProject::CreateMenusAndCommands()
// The OnRecord2ndChoice function is: if normal record records beside, // The OnRecord2ndChoice function is: if normal record records beside,
// it records below, if normal record records below, it records beside. // it records below, if normal record records below, it records beside.
// TODO: Do 'the right thing' with other options like TimerRecord. // TODO: Do 'the right thing' with other options like TimerRecord.
bool bPreferAppend; bool bPreferNewTrack;
gPrefs->Read("/GUI/PreferAppendRecord",&bPreferAppend, true); gPrefs->Read("/GUI/PreferNewTrackRecord",&bPreferNewTrack, false);
c->AddItem( wxT("Record2ndChoice"), c->AddItem( wxT("Record2ndChoice"),
// Our first choice is bound to R (by default) and gets the prime position. // Our first choice is bound to R (by default) and gets the prime position.
// We supply the name for the 'other one' here. It should be bound to Shift+R // We supply the name for the 'other one' here. It should be bound to Shift+R
bPreferAppend ? _("Record &New Track") : _("&Append Record"), bPreferNewTrack ? _("&Append Record") : _("Record &New Track"),
FN(OnRecord2ndChoice), FN(OnRecord2ndChoice),
wxT("Shift+R") wxT("Shift+R")
); );

View File

@ -160,9 +160,9 @@ void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
S.StartStatic(_("Options")); S.StartStatic(_("Options"));
{ {
S.TieCheckBox(_("Record &appends, instead of recording new track"), S.TieCheckBox(_("Always record on a new track"),
wxT("/GUI/PreferAppendRecord"), wxT("/GUI/PreferNewTrackRecord"),
true); false);
} }
S.EndStatic(); S.EndStatic();

View File

@ -197,9 +197,9 @@ void ControlToolBar::Populate()
mRecord = MakeButton(bmpRecord, bmpRecord, bmpRecordDisabled, mRecord = MakeButton(bmpRecord, bmpRecord, bmpRecordDisabled,
ID_RECORD_BUTTON, true, _("Record")); ID_RECORD_BUTTON, true, _("Record"));
bool bPreferAppend; bool bPreferNewTrack;
gPrefs->Read("/GUI/PreferAppendRecord",&bPreferAppend, true); gPrefs->Read("/GUI/PreferNewTrackRecord",&bPreferNewTrack, false);
if( bPreferAppend ) if( !bPreferNewTrack )
MakeAlternateImages(*mRecord, 1, bmpRecordBelow, bmpRecordBelow, MakeAlternateImages(*mRecord, 1, bmpRecordBelow, bmpRecordBelow,
bmpRecordBelowDisabled); bmpRecordBelowDisabled);
else else
@ -241,9 +241,9 @@ void ControlToolBar::RegenerateTooltips()
// Without shift // Without shift
//commands.push_back(wxT("Record")); //commands.push_back(wxT("Record"));
commands.push_back(wxT("Record1stChoice")); commands.push_back(wxT("Record1stChoice"));
{ bool bPreferAppend; { bool bPreferNewTrack;
gPrefs->Read("/GUI/PreferAppendRecord",&bPreferAppend, true); gPrefs->Read("/GUI/PreferNewTrackRecord",&bPreferNewTrack, false);
if( bPreferAppend ){ if( !bPreferNewTrack ){
commands.push_back(_("Record New Track")); commands.push_back(_("Record New Track"));
} else { } else {
commands.push_back(_("Append Record")); commands.push_back(_("Append Record"));
@ -922,9 +922,9 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
bool shifted = mRecord->WasShiftDown(); bool shifted = mRecord->WasShiftDown();
bool bPreferAppend; bool bPreferNewTrack;
gPrefs->Read("/GUI/PreferAppendRecord",&bPreferAppend, true); gPrefs->Read("/GUI/PreferNewTrackRecord",&bPreferNewTrack, false);
if( bPreferAppend ) if( !bPreferNewTrack )
shifted = !shifted; shifted = !shifted;
TrackList *trackList = p->GetTracks(); TrackList *trackList = p->GetTracks();