1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Opt-out of check for updates persists after preference resets...

... These can happen in only two ways, using the application: from the Tools
menu, or using the Windows intaller program.

A review of all uses of wxFileConfig::DeleteAll() proves this.

The one special BoolSetting object was moved from UpdateManager to Prefs.cpp to
avoid a dependency cycle among source code files.
This commit is contained in:
Paul Licameli
2021-06-29 14:32:18 -04:00
committed by Paul Licameli
parent bfb79feed3
commit 870fc5d626
10 changed files with 42 additions and 14 deletions

View File

@@ -384,7 +384,7 @@ void OnResetConfig(const CommandContext &context)
menuManager.mLastAnalyzer = "";
menuManager.mLastTool = "";
gPrefs->DeleteAll();
ResetPreferences();
// Directory will be reset on next restart.
FileNames::UpdateDefaultPath(FileNames::Operation::Temp, TempDirectory::DefaultTempDir());