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:
parent
84f5c55d7c
commit
62c4e10a16
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user