Fix mute toggle actions when mute is automated
Track menu, as well as mixer-shortcut to set/unset mute of selected tracks needs to send a start_touch() event, otherwise the change is not effective.
This commit is contained in:
parent
e30a1032d0
commit
e7637d7786
|
@ -6162,7 +6162,9 @@ Editor::toggle_mute ()
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cl->push_back (stav->stripable()->mute_control());
|
boost::shared_ptr<MuteControl> mc = stav->stripable()->mute_control();
|
||||||
|
cl->push_back (mc);
|
||||||
|
mc->start_touch (_session->audible_sample ());
|
||||||
}
|
}
|
||||||
|
|
||||||
_session->set_controls (cl, new_state, Controllable::UseGroup);
|
_session->set_controls (cl, new_state, Controllable::UseGroup);
|
||||||
|
|
|
@ -3383,6 +3383,7 @@ Mixer_UI::control_action (boost::shared_ptr<T> (Stripable::*get_control)() const
|
||||||
if (s) {
|
if (s) {
|
||||||
ac = (s.get()->*get_control)();
|
ac = (s.get()->*get_control)();
|
||||||
if (ac) {
|
if (ac) {
|
||||||
|
ac->start_touch (_session->audible_sample ());
|
||||||
cl->push_back (ac);
|
cl->push_back (ac);
|
||||||
if (!have_val) {
|
if (!have_val) {
|
||||||
val = !ac->get_value();
|
val = !ac->get_value();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user