Skip to content

Commit

Permalink
Show green text when feeding back to grid even if feed-in is disabled
Browse files Browse the repository at this point in the history
ThreePhaseDisplay should show green text for phases that
are feeding back into the grid, even if ESS feedback is disabled.
  • Loading branch information
DanielMcInnes committed Jul 3, 2024
1 parent 78d672a commit ed8b5df
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 ed8b5df

Please sign in to comment.