Save Lua UI scripts separately
[ardour.git] / gtk2_ardour / au_pluginui.mm
index d3c38d87d5de8138a70e824334a06972f7482ce8..00bbcbda1bc5f61ec7ce6a0b99792648617941bd 100644 (file)
@@ -420,7 +420,9 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
        smaller_hbox->pack_start (automation_mode_label, false, false);
        smaller_hbox->pack_start (automation_mode_selector, false, false);
 #endif
-       smaller_hbox->pack_start (reset_button, false, false);
+       if (insert->controls().size() > 0) {
+               smaller_hbox->pack_start (reset_button, false, false);
+       }
        smaller_hbox->pack_start (bypass_button, false, true);
 
        VBox* v1_box = manage (new VBox);