1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02: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

@@ -471,6 +471,9 @@ void KeyConfigPrefs::FilterKeys( wxArrayString & arr )
void KeyConfigPrefs::OnImportDefaults(wxCommandEvent & event)
{
gPrefs->DeleteEntry(wxT("/GUI/Shortcuts/FullDefaults"));
gPrefs->Flush();
mNewKeys = mDefaultKeys;
if( event.GetId() == 0 )
FilterKeys( mNewKeys );