1
0
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:
James Crook
2017-06-30 21:38:20 +01:00
parent aa8be0c413
commit 46154d0dca
4 changed files with 20 additions and 2 deletions

View File

@@ -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);