13
0

reset peak meters used in push2 when stripable goes away

This commit is contained in:
Paul Davis 2016-10-17 15:58:30 -04:00
parent 687ac2d294
commit c43046320b

View File

@ -547,6 +547,11 @@ MixLayout::switch_bank (uint32_t base)
if (!s[0]) { if (!s[0]) {
/* not even the first stripable exists, do nothing */ /* not even the first stripable exists, do nothing */
for (int n = 0; n < 8; ++n) {
stripable[n].reset ();
gain_meter[n]->knob->set_controllable (boost::shared_ptr<AutomationControl>());
gain_meter[n]->meter->set_meter (0);
}
return; return;
} }
@ -563,6 +568,8 @@ MixLayout::switch_bank (uint32_t base)
if (!stripable[n]) { if (!stripable[n]) {
lower_text[n]->hide (); lower_text[n]->hide ();
hide_selection (n); hide_selection (n);
gain_meter[n]->knob->set_controllable (boost::shared_ptr<AutomationControl>());
gain_meter[n]->meter->set_meter (0);
} else { } else {
lower_text[n]->show (); lower_text[n]->show ();