MCU: hide phase/solo controls for master

This commit is contained in:
Franke Burgarino 2025-08-20 10:29:49 -05:00
parent 28c8dbf128
commit 8bfd8de2f6

View file

@ -880,39 +880,46 @@ void TrackViewSubview::setup_vpot(
}
break;
case 2:
if (!_subview_stripable->is_master()) {
pc = _subview_stripable->solo_isolate_control ();
if (pc) {
pc->Changed.connect (_subview_connections, MISSING_INVALIDATOR, std::bind (&TrackViewSubview::notify_change, this, SoloIsolateAutomation, global_strip_position, false), ui_context());
notify_change (SoloIsolateAutomation, global_strip_position, true);
pending_display[0] = "S-Iso";
}
}
break;
case 3:
if (!_subview_stripable->is_master()) {
pc = _subview_stripable->solo_safe_control ();
if (pc) {
pc->Changed.connect (_subview_connections, MISSING_INVALIDATOR, std::bind (&TrackViewSubview::notify_change, this, SoloSafeAutomation, global_strip_position, false), ui_context());
notify_change (SoloSafeAutomation, global_strip_position, true);
pending_display[0] = "S-Safe";
}
}
break;
case 4:
if (!_subview_stripable->is_master()) {
pc = _subview_stripable->phase_control();
if (pc) {
pc->Changed.connect (_subview_connections, MISSING_INVALIDATOR, std::bind (&TrackViewSubview::notify_change, this, PhaseAutomation, global_strip_position, false), ui_context());
notify_change (PhaseAutomation, global_strip_position, true);
pending_display[0] = "Phase";
}
}
break;
}
if (!pc) {
vpot->set_control (std::shared_ptr<AutomationControl>());
pending_display[0] = std::string();
pending_display[1] = std::string();
return;
}
} else {
vpot->set_control (pc);
}
}
void
TrackViewSubview::notify_change (AutomationType type, uint32_t global_strip_position, bool force_update)