use new open-gui-after-adding-plugin config variable
authorRobin Gareus <robin@gareus.org>
Tue, 8 Dec 2015 12:44:20 +0000 (13:44 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 8 Dec 2015 12:44:20 +0000 (13:44 +0100)
gtk2_ardour/processor_box.cc

index 49e2c319f2d5920d91844a46173adc80ba0dfc8a..d61d8d1139285f3979c399953be8b84832ce49d0 100644 (file)
@@ -1564,7 +1564,7 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
                        weird_plugin_dialog (**p, err_streams);
                        return true;
                        // XXX SHAREDPTR delete plugin here .. do we even need to care?
-               } else if (plugins.size() == 1) {
+               } else if (plugins.size() == 1 && Config->get_open_gui_after_adding_plugin()) {
                        if (_session->engine().connected () && processor_can_be_edited (processor)) {
                                if ((*p)->has_editor ()) {
                                        edit_processor (processor);