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.

This commit is contained in:
Nikolaus Gullotta 2019-06-10 14:19:21 -05:00
parent d9118efc67
commit d2dc50e5d0

View file

@ -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);
}
}