mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 09:03:54 +01:00
Comment about resetting toolbars in OnResetConfig
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user