From 98bcfb14852b3b9fdae34fdc6330806d3a466d73 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 22 Nov 2019 20:06:43 +0100 Subject: [PATCH] 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. --- libs/ardour/plugin_manager.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 *)