From d2dc50e5d0d8ca99da048721d9aaa31eac0557ee Mon Sep 17 00:00:00 2001 From: Nikolaus Gullotta Date: Mon, 10 Jun 2019 14:19:21 -0500 Subject: [PATCH] re-enable group settings according to it's state. for some reason, set_state doesn't work on this. Probably better to do it like this anyways. --- libs/ardour/mixer_snapshot.cc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libs/ardour/mixer_snapshot.cc b/libs/ardour/mixer_snapshot.cc index 0307ebed07..3521a622f9 100644 --- a/libs/ardour/mixer_snapshot.cc +++ b/libs/ardour/mixer_snapshot.cc @@ -383,9 +383,22 @@ void MixerSnapshot::recall() uint32_t color; state.node.get_property(X_("rgba"), color); - + + bool gain, mute, solo, recenable, select, route_active, monitoring; + state.node.get_property(X_("used-to-share-gain"), gain); + state.node.get_property(X_("mute"), mute); + state.node.get_property(X_("recenable"), recenable); + state.node.get_property(X_("select"), select); + state.node.get_property(X_("route-active"), route_active); + state.node.get_property(X_("monitoring"), monitoring); + group->set_gain(gain); + group->set_mute(mute); + group->set_solo(solo); + group->set_recenable(recenable); + group->set_select(select); + group->set_route_active(route_active); + group->set_monitoring(monitoring); group->set_color(color); - group->set_state(state.node, Stateful::loading_state_version); } }