diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-09 04:39:10 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-09 04:39:10 +0200 |
commit | ec6a85f921b2b6c950c6c94f0392c059cffba5dd (patch) | |
tree | 4e1027c51e6df26f8d7d78fd39ee424ebdb31a44 /gtk2_ardour/generic_pluginui.cc | |
parent | 2513343204b5fb1256b15bce2058fcfd52d9432a (diff) |
GenericUI: subscribe to property changes before querying values
Fixes displaying the initial/current filename/path for plugins that have
a LV2:Patch path property.
Diffstat (limited to 'gtk2_ardour/generic_pluginui.cc')
-rw-r--r-- | gtk2_ardour/generic_pluginui.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 62a69bef1e..6d26da1b1e 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -208,14 +208,6 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol scroller.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER); } - - /* Listen for property changes that are not notified normally because - * AutomationControl has only support for numeric values currently. - * The only case is Variant::PATH for now */ - plugin->PropertyChanged.connect(*this, invalidator(*this), - boost::bind(&GenericPluginUI::path_property_changed, this, _1, _2), - gui_context()); - main_contents.show (); } @@ -392,6 +384,14 @@ GenericPluginUI::build () control_uis.push_back(cui); } if (!descs.empty()) { + /* Listen for property changes that are not notified normally because + * AutomationControl has only support for numeric values currently. + * The only case is Variant::PATH for now */ + plugin->PropertyChanged.connect(*this, invalidator(*this), + boost::bind(&GenericPluginUI::path_property_changed, this, _1, _2), + gui_context()); + + /* and query current property value */ plugin->announce_property_values(); } |