Skip to content

Commit

Permalink
ThreePhaseDisplay should show green text for phases that
Browse files Browse the repository at this point in the history
are feeding back into the grid, even if systemSettings.essFeedbackToGridEnabled
is false.
  • Loading branch information
DanielMcInnes authored and blammit committed Jul 3, 2024
1 parent 50257fd commit 3484874
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/ThreePhaseDisplay.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ Flow {
delegate: Item {
id: phaseDelegate

readonly property bool feedingToGrid: Global.systemSettings.essFeedbackToGridEnabled
&& root.inputMode
&& (model.power || 0) < 0
readonly property bool feedingToGrid: root.inputMode && (model.power || 0) < 0
readonly property int valueStatus: feedingToGrid ? Theme.Ok
: root.phaseModelProperty ? Theme.getValueStatus(valueRange.valueAsRatio * 100, root.valueType)
: Theme.Ok
Expand Down

0 comments on commit 3484874

Please sign in to comment.