mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 16:09:28 +02:00
Change default setting of "move selection with tracks" to be "off"
This commit is contained in:
parent
b2d8f36969
commit
6c0e8c7d86
@ -999,7 +999,7 @@ void AudacityProject::CreateMenusAndCommands()
|
||||
c->AddSeparator();
|
||||
c->AddCheck(wxT("MoveSelectionWithTracks"), _("&Move Selection with Tracks (on/off)"),
|
||||
FN(OnMoveSelectionWithTracks),
|
||||
gPrefs->Read(wxT("/GUI/MoveSelectionWithTracks"), 1L),
|
||||
gPrefs->Read(wxT("/GUI/MoveSelectionWithTracks"), 0L),
|
||||
AlwaysEnabledFlag, AlwaysEnabledFlag);
|
||||
c->EndSubMenu();
|
||||
|
||||
@ -6940,7 +6940,7 @@ void AudacityProject::OnAlignNoSync(int index)
|
||||
void AudacityProject::OnAlign(int index)
|
||||
{
|
||||
bool bMoveWith;
|
||||
gPrefs->Read(wxT("/GUI/MoveSelectionWithTracks"), &bMoveWith, true);
|
||||
gPrefs->Read(wxT("/GUI/MoveSelectionWithTracks"), &bMoveWith, false);
|
||||
HandleAlign(index, bMoveWith);
|
||||
}
|
||||
/*
|
||||
@ -7446,7 +7446,7 @@ int AudacityProject::DoAddLabel(const SelectedRegion ®ion, bool preserveFocus
|
||||
void AudacityProject::OnMoveSelectionWithTracks()
|
||||
{
|
||||
bool bMoveWith;
|
||||
gPrefs->Read(wxT("/GUI/MoveSelectionWithTracks"), &bMoveWith, true);
|
||||
gPrefs->Read(wxT("/GUI/MoveSelectionWithTracks"), &bMoveWith, false);
|
||||
gPrefs->Write(wxT("/GUI/MoveSelectionWithTracks"), !bMoveWith);
|
||||
gPrefs->Flush();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user