mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 05:01:57 +01:00
Upgraders to 2.2.0 retain the full set of default shortcuts.
If they delete audacity.cfg they get the new smaller set of defaults. Also if they explicitly ask for the standard set.
This commit is contained in:
@@ -313,6 +313,13 @@ void InitPreferences()
|
||||
gPrefs->Write(wxT("/GUI/ToolBars/Meter/Dock"), -1);
|
||||
}
|
||||
|
||||
// Upgrading pre 2.2.0 configs we assume extended set of defaults.
|
||||
if ((0<vMajor && vMajor < 2) ||
|
||||
(vMajor == 2 && vMinor < 2))
|
||||
{
|
||||
gPrefs->Write(wxT("/GUI/Shortcuts/FullDefaults"),1);
|
||||
}
|
||||
|
||||
// write out the version numbers to the prefs file for future checking
|
||||
gPrefs->Write(wxT("/Version/Major"), AUDACITY_VERSION);
|
||||
gPrefs->Write(wxT("/Version/Minor"), AUDACITY_RELEASE);
|
||||
|
||||
Reference in New Issue
Block a user