diff --git a/src/ModuleSettings.cpp b/src/ModuleSettings.cpp index 0f182ccd5..0dc968944 100644 --- a/src/ModuleSettings.cpp +++ b/src/ModuleSettings.cpp @@ -12,8 +12,18 @@ #include "Prefs.h" +#include #include +static const std::unordered_set &autoEnabledModules() +{ + // Add names to this list, of modules that are expected to ship + // with Audacity and enable automatically. + static std::unordered_set modules{ + }; + return modules; +} + // static function that tells us about a module. int ModuleSettings::GetModuleStatus(const FilePath &fname) { @@ -54,6 +64,11 @@ int ModuleSettings::GetModuleStatus(const FilePath &fname) gPrefs->DeleteEntry( DateTimePref ); } + if (iStatus == kModuleNew) { + if (autoEnabledModules().count(ShortName)) + iStatus = kModuleEnabled; + } + return iStatus; }