summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-05-25 01:56:54 +0200
committerRobin Gareus <robin@gareus.org>2019-05-25 01:56:54 +0200
commit4cd379f89be407b07ca75c6c93f1d6c2bdffb33a (patch)
tree4935d2689542ba4e9cd96859d0edad9ad320237e /gtk2_ardour/rc_option_editor.cc
parentc97884d257ede3097a1665274038a8c68e27bb4e (diff)
UI integration to conceal LV1 plugins
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index c906e96c66..d21e674f2a 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -3518,6 +3518,17 @@ RCOptionEditor::RCOptionEditor ()
_("AU Blacklist:")));
#endif
+#ifdef HAVE_LV2
+ add_option (_("Plugins"), new OptionEditorHeading (_("LV1/LV2")));
+ add_option (_("Plugins"),
+ new BoolOption (
+ "conceal-lv1-if-lv2-exists",
+ _("Conceal LADSPA (LV1) Plugins if matching LV2 exists"),
+ sigc::mem_fun (*_rc_config, &RCConfiguration::get_conceal_lv1_if_lv2_exists),
+ sigc::mem_fun (*_rc_config, &RCConfiguration::set_conceal_lv1_if_lv2_exists)
+ ));
+#endif
+
#if (defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT || defined MACVST_SUPPORT || defined AUDIOUNIT_SUPPORT || defined HAVE_LV2)
add_option (_("Plugins"), new OptionEditorHeading (_("Plugin GUI")));
add_option (_("Plugins"),
@@ -4071,6 +4082,8 @@ RCOptionEditor::parameter_changed (string const & p)
#if (defined LV2_SUPPORT && defined LV2_EXTENDED)
_plugin_prefer_inline->set_sensitive (UIConfiguration::instance().get_open_gui_after_adding_plugin() && UIConfiguration::instance().get_show_inline_display_by_default());
#endif
+ } else if (p == "conceal-lv1-if-lv2-exists") {
+ PluginManager::instance().refresh (true);
}
}