From ed8b5df5ee1b722df950fc45e026a48a65d37ed5 Mon Sep 17 00:00:00 2001 From: Daniel McInnes Date: Wed, 3 Jul 2024 14:15:02 +1000 Subject: [PATCH] Show green text when feeding back to grid even if feed-in is disabled ThreePhaseDisplay should show green text for phases that are feeding back into the grid, even if ESS feedback is disabled. --- components/ThreePhaseDisplay.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/ThreePhaseDisplay.qml b/components/ThreePhaseDisplay.qml index e4be89be1..c95cdb35c 100644 --- a/components/ThreePhaseDisplay.qml +++ b/components/ThreePhaseDisplay.qml @@ -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