LCXL:Disable global mute/solo/recarm in device mode
[ardour.git] / libs / surfaces / launch_control_xl / gui.cc
index dc5cc2901c03dc652a355d7d7baea83289f9e15b..ad12b9a6b6f55d2d3f714c47f87f82a6edc2ea83 100644 (file)
@@ -127,8 +127,6 @@ LCXLGUI::LCXLGUI (LaunchControlXL& p)
 
        /* User Settings */
 
-       fader8master_button.signal_clicked().connect (sigc::mem_fun (*this, &LCXLGUI::toggle_fader8master));
-
        l = manage (new Gtk::Label (_("Fader 8 Master")));
        l->set_alignment (1.0, 0.5);
        table.attach (*l, 0, 1, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions (0));
@@ -136,7 +134,8 @@ LCXLGUI::LCXLGUI (LaunchControlXL& p)
        align->set (0.0, 0.5);
        align->add (fader8master_button);
        table.attach (*align, 1, 2, row, row+1, AttachOptions(FILL|EXPAND), AttachOptions (0),0,0);
-       fader8master_button.set_active(lcxl.use_fader8master);
+       fader8master_button.set_active (lcxl.fader8master());
+       fader8master_button.signal_toggled().connect (sigc::mem_fun (*this, &LCXLGUI::toggle_fader8master));
        row++;
 
        hpacker.pack_start (table, true, true);
@@ -286,8 +285,7 @@ LCXLGUI::active_port_changed (Gtk::ComboBox* combo, bool for_input)
 void
 LCXLGUI::toggle_fader8master ()
 {
-       DEBUG_TRACE(DEBUG::LaunchControlXL, string_compose("use_fader8master WAS: %1\n", lcxl.use_fader8master));
-       lcxl.use_fader8master = !(lcxl.use_fader8master);
-       DEBUG_TRACE(DEBUG::LaunchControlXL, string_compose("use_fader8master IS: %1\n", lcxl.use_fader8master));
-       lcxl.set_fader8master(lcxl.use_fader8master);
+       DEBUG_TRACE(DEBUG::LaunchControlXL, string_compose("use_fader8master WAS: %1\n", lcxl.fader8master()));
+       lcxl.set_fader8master (!lcxl.fader8master());
+       DEBUG_TRACE(DEBUG::LaunchControlXL, string_compose("use_fader8master IS: %1\n", lcxl.fader8master()));
 }