Consistent button visibility (mixer-strips + VCAs)
authorRobin Gareus <robin@gareus.org>
Wed, 26 Apr 2017 22:25:57 +0000 (00:25 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 26 Apr 2017 22:25:57 +0000 (00:25 +0200)
gtk2_ardour/vca_master_strip.cc

index aa4709ca793ada9f22ffe5651d9ab6cedd5270d5..40b2a081030cfb549f92e8feccbf85e919e67760 100644 (file)
@@ -230,6 +230,11 @@ VCAMasterStrip::update_bottom_padding ()
        output_button.set_name ("mixer strip button");
        comment_button.set_name ("generic button");
 
+       if (viz.find ("VCA") == std::string::npos) {
+               control_slave_ui.hide ();
+       } else {
+               control_slave_ui.show ();
+       }
 
        int h = 1;
        if (1) {