Skip to content

Commit

Permalink
Use AC input current limit for AC input widget gauge if applicable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
blammit committed Jul 17, 2023
1 parent 9c76abf commit 2abc636
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/widgets/AcInputWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 2abc636

Please sign in to comment.