1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 07:58:05 +02:00

Comment about resetting toolbars in OnResetConfig

This commit is contained in:
James Crook 2020-05-26 14:54:26 +01:00
parent 84f5c55d7c
commit 62c4e10a16

View File

@ -311,10 +311,14 @@ void OnResetConfig(const CommandContext &context)
auto &project = context.project;
wxString dir = gPrefs->Read(wxT("/Directories/TempDir"));
gPrefs->DeleteAll();
// This stops ReloadPreferences warning about directory change
// on next restart.
gPrefs->Write(wxT("/Directories/TempDir"), dir);
// Code needed here to re-instate default menus.
gPrefs->Flush();
DoReloadPreferences(project);
// OnResetToolBars(context);
gPrefs->Flush();
}