From 2abc6365a8fe0ef84da9c09a3d56e26ff1dca543 Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Mon, 17 Jul 2023 11:37:05 +1000 Subject: [PATCH] Use AC input current limit for AC input widget gauge if applicable If units are shown in amps, use the AC input's current limit as the maximum gauge value in the Overview page. This makes the implementation consistent with what is already done for the AC inputs gauge on the Brief page. --- components/widgets/AcInputWidget.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/widgets/AcInputWidget.qml b/components/widgets/AcInputWidget.qml index 06afa01ae..db7e2108f 100644 --- a/components/widgets/AcInputWidget.qml +++ b/components/widgets/AcInputWidget.qml @@ -36,6 +36,9 @@ OverviewWidget { id: valueRange value: sideGauge.visible ? root.quantityLabel.value : NaN + maximumValue: Global.systemSettings.electricalQuantity.value === VenusOS.Units_Amp + ? Global.acInputs.currentLimit + : NaN } }