Group-override for faders

Tentative solution. Eventually the gain_adjustment should be moved
into the PixFader or SliderController and a dedicated API
should replace  gain_adjustment.signal_value_changed()
This commit is contained in:
Robin Gareus 2017-02-24 23:40:13 +01:00
parent a1a2e088a5
commit 4afa3aa65e

View File

@ -581,7 +581,14 @@ GainMeterBase::fader_moved ()
value = gain_adjustment.get_value();
}
_control->set_value (value, Controllable::UseGroup);
// XXX hack allow to override group
// (this breaks group'ed shift+click reset)
if (Keyboard::the_keyboard().key_is_down (GDK_Shift_R)
|| Keyboard::the_keyboard().key_is_down (GDK_Shift_L)) {
_control->set_value (value, Controllable::NoGroup);
} else {
_control->set_value (value, Controllable::UseGroup);
}
}
show_gain ();