diff main/PreferencesDialog.cpp @ 1824:9a1e9d8d7bf0 plugin-path-config

Toward more than one plugin type in this widget
author Chris Cannam
date Mon, 21 May 2018 16:16:31 +0100
parents 0057f5313883
children bc3e56ef251b
line wrap: on
line diff
--- a/main/PreferencesDialog.cpp	Tue May 15 15:25:32 2018 +0100
+++ b/main/PreferencesDialog.cpp	Mon May 21 16:16:31 2018 +0100
@@ -591,7 +591,14 @@
     path << "/usr/lib/vamp";
     path << "/usr/local/lib/vamp";
     path << "/home/user/.vamp";
-    pathConfig->setPath(path, "VAMP_PATH");
+    PluginPathConfigurator::Paths paths;
+    paths["Vamp"] = { path, "VAMP_PATH" };
+    path.clear();
+    path << "/usr/lib/ladspa";
+    path << "/usr/local/lib/ladspa";
+    path << "/home/user/.ladspa";
+    paths["LADSPA"] = { path, "LADSPA_PATH" };
+    pathConfig->setPaths(paths);
     
     subgrid->addWidget(pathConfig, row++, 0, 1, 2);