mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
We have used the present preferences since version 1.3.1, do not bother importing any older ones any more for 2.1.0 release
This commit is contained in:
parent
59aa7b9b84
commit
8e47b64e2b
@ -171,16 +171,14 @@ void InitPreferences()
|
||||
}
|
||||
}
|
||||
|
||||
// We introduced new file-based preferences in version 1.3.1; the
|
||||
// In AUdacity 2.1.0 support for the legacy 1.2.x preferences (depreciated since Audacity
|
||||
// 1.3.1) is dropped. As a result we can drop the import flag
|
||||
// first time this version of Audacity is run we try to migrate
|
||||
// old preferences.
|
||||
bool newPrefsInitialized = false;
|
||||
gPrefs->Read(wxT("/NewPrefsInitialized"), &newPrefsInitialized, false);
|
||||
if (!newPrefsInitialized) {
|
||||
wxConfigBase *legacyConfig = new wxConfig(appName);
|
||||
CopyEntriesRecursive(wxT("/"), legacyConfig, gPrefs);
|
||||
delete legacyConfig;
|
||||
gPrefs->Write(wxT("/NewPrefsInitialized"), true);
|
||||
if (newPrefsInitialized) {
|
||||
gPrefs->DeleteEntry(wxT("/NewPrefsInitialized"), true); // take group as well if empty
|
||||
}
|
||||
|
||||
gPrefs->Write(wxT("/Version"), wxString(AUDACITY_VERSION_STRING));
|
||||
|
Loading…
x
Reference in New Issue
Block a user