diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-22 20:06:43 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-22 20:06:43 +0100 |
commit | 98bcfb14852b3b9fdae34fdc6330806d3a466d73 (patch) | |
tree | 124c76fa52d09168679505cd3110526aee7555a9 /libs/ardour/plugin_manager.cc | |
parent | f7b3dffebe4f262cad3f10502bc5fcde9213c821 (diff) |
Save VST paths after successful scan
Ardour only saves Config when the session is saved.
When changing the VST Path and starting a plugin-scan the newly
discovered plugins would otherwise not be avalable unless
the session is explicitly saved after a scan.
Diffstat (limited to 'libs/ardour/plugin_manager.cc')
-rw-r--r-- | libs/ardour/plugin_manager.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 602388509f..36457fc4c0 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -995,6 +995,10 @@ PluginManager::windows_vst_refresh (bool cache_only) } windows_vst_discover_from_path (Config->get_plugin_path_vst(), cache_only); + if (!cache_only) { + /* ensure that VST path is flushed to disk */ + Config->save_state(); + } } static bool windows_vst_filter (const string& str, void * /*arg*/) @@ -1185,6 +1189,10 @@ PluginManager::mac_vst_refresh (bool cache_only) } mac_vst_discover_from_path ("~/Library/Audio/Plug-Ins/VST:/Library/Audio/Plug-Ins/VST", cache_only); + if (!cache_only) { + /* ensure that VST path is flushed to disk */ + Config->save_state(); + } } static bool mac_vst_filter (const string& str) @@ -1306,6 +1314,10 @@ PluginManager::lxvst_refresh (bool cache_only) } lxvst_discover_from_path (Config->get_plugin_path_lxvst(), cache_only); + if (!cache_only) { + /* ensure that VST path is flushed to disk */ + Config->save_state(); + } } static bool lxvst_filter (const string& str, void *) |