1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-01 17:34:24 +01:00

Separate plugin registry from plugin settings

This allows us to return to a clean rescan at Audacity
startup if the user check rescan in prefs.
This commit is contained in:
lllucius
2014-12-17 00:52:37 +00:00
parent 9c4f68c6a3
commit 8d03bd3e9b
4 changed files with 175 additions and 140 deletions

View File

@@ -255,17 +255,19 @@ public:
const PluginID & RegisterLegacyEffectPlugin(EffectIdentInterface *effect);
private:
bool Load();
void Load();
void LoadGroup(const wxChar *group, PluginType type);
void Save();
void SaveGroup(const wxChar *group, PluginType type);
void CheckForUpdates(bool forceRescan);
void CheckForUpdates();
void DisableMissing();
wxArrayString IsNewOrUpdated(const wxArrayString & paths);
PluginDescriptor & CreatePlugin(IdentInterface *ident, PluginType type);
wxFileConfig *GetSettings();
bool GetSubgroups(const wxString & group, wxArrayString & subgroups);
bool GetConfig(const wxString & key, wxString & value, const wxString & defval = L"");
@@ -298,7 +300,8 @@ private:
bool IsDirty();
void SetDirty(bool dirty = true);
wxFileConfig *mConfig;
wxFileConfig *mRegistry;
wxFileConfig *mSettings;
bool mDirty;
int mCurrentIndex;