MCU: fixed dynamics subview scrolling bug

switching to a dyn type with less parameters can no longer place you past the
last parameter
This commit is contained in:
Franke Burgarino
2025-08-11 15:16:02 -05:00
parent 588fbee13b
commit e734acfa6b

View File

@@ -515,6 +515,10 @@ void DynamicsSubview::init_params() {
if (gdc) { available.push_back (std::make_pair (gdc, "GDepth")); }
if (gac) { available.push_back (std::make_pair (gac, "GAttk")); }
if (gsc) { available.push_back (std::make_pair (gsc, "GRels")); }
if (available.size() <= _current_bank + 1) {
_current_bank = available.size() - 1;
}
}
void DynamicsSubview::setup_vpot(