diff --git a/pages/settings/PageSettingsDvcc.qml b/pages/settings/PageSettingsDvcc.qml index 0b6e5c823..ea76c5be8 100644 --- a/pages/settings/PageSettingsDvcc.qml +++ b/pages/settings/PageSettingsDvcc.qml @@ -211,6 +211,31 @@ Page { uid: bmsName.serviceUid ? "%1/CustomName".arg(bmsName.serviceUid) : "" } } + + ListSwitch { + //% "Managed battery controls all Multis and Quattros" + text: qsTrId("settings_dvcc_control_all_vebus_devices") + dataItem.uid: Global.systemSettings.serviceUid + "/Settings/SystemSetup/DvccControlAllMultis" + allowed: defaultAllowed && commonSettings.dvccActive && + nrVebusDevices.isValid && nrVebusDevices.value > 1 + + bottomContentChildren: [ + PrimaryListLabel { + topPadding: 0 + bottomPadding: 0 + color: Theme.color_font_secondary + //% "When enabled, the managed battery controls all Multis and Quattros. " + //% "When disabled, only the device on the built-in port is controlled. " + //% "See documentation for further information." + text: qsTrId("settings_dvcc_control_all_vebus_devices_label") + } + ] + + VeQuickItem { + id: nrVebusDevices + uid: Global.system.serviceUid + "/Devices/NumberOfVebusDevices" + } + } } } }