Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Jan 15, 2025
1 parent ec916fb commit b8bd71e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 97 deletions.
18 changes: 9 additions & 9 deletions pages/settings/devicelist/battery/PageBattery.qml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Page {
ListQuantity {
text: "Current (last 5 minutes avg.)"
dataItem.uid: root.bindPrefix + "/CurrentAvg"
preferredVisible: defaultAllowed && dataItem.isValid
preferredVisible: dataItem.isValid
unit: VenusOS.Units_Amp
}

Expand Down Expand Up @@ -205,7 +205,7 @@ Page {
ListTemperature {
text: "MOSFET Temperature"
dataItem.uid: root.bindPrefix + "/System/MOSTemperature"
preferredVisible: defaultAllowed && dataItem.isValid
preferredVisible: dataItem.isValid
unit: Global.systemSettings.temperatureUnit
}

Expand Down Expand Up @@ -283,47 +283,47 @@ Page {
ListText {
//% "Time-to-SoC 0%"
text: "Time-to-SoC 0%"
preferredVisible: defaultAllowed && dataItem.seen
preferredVisible: dataItem.seen
dataItem.uid: root.bindPrefix + "/TimeToSoC/0"
secondaryText: dataItem.isValid && dataItem.value != "" > 0 ? dataItem.value : "--"
}

ListText {
//% "Time-to-SoC 10%"
text: "Time-to-SoC 10%"
preferredVisible: defaultAllowed && dataItem.seen
preferredVisible: dataItem.seen
dataItem.uid: root.bindPrefix + "/TimeToSoC/10"
secondaryText: dataItem.isValid && dataItem.value != "" > 0 ? dataItem.value : "--"
}

ListText {
//% "Time-to-SoC 20%"
text: "Time-to-SoC 20%"
preferredVisible: defaultAllowed && dataItem.seen
preferredVisible: dataItem.seen
dataItem.uid: root.bindPrefix + "/TimeToSoC/20"
secondaryText: dataItem.isValid && dataItem.value != "" > 0 ? dataItem.value : "--"
}

ListText {
//% "Time-to-SoC 80%"
text: "Time-to-SoC 80%"
preferredVisible: defaultAllowed && dataItem.seen
preferredVisible: dataItem.seen
dataItem.uid: root.bindPrefix + "/TimeToSoC/80"
secondaryText: dataItem.isValid && dataItem.value != "" > 0 ? dataItem.value : "--"
}

ListText {
//% "Time-to-SoC 90%"
text: "Time-to-SoC 90%"
preferredVisible: defaultAllowed && dataItem.seen
preferredVisible: dataItem.seen
dataItem.uid: root.bindPrefix + "/TimeToSoC/90"
secondaryText: dataItem.isValid && dataItem.value != "" > 0 ? dataItem.value : "--"
}

ListText {
//% "Time-to-SoC 100%"
text: "Time-to-SoC 100%"
preferredVisible: defaultAllowed && dataItem.seen
preferredVisible: dataItem.seen
dataItem.uid: root.bindPrefix + "/TimeToSoC/100"
secondaryText: dataItem.isValid && dataItem.value != "" > 0 ? dataItem.value : "--"
}
Expand Down Expand Up @@ -353,7 +353,7 @@ Page {

ListNavigation {
text: "Cell Voltages"
preferredVisible: defaultAllowed && cell3Voltage.isValid
preferredVisible: cell3Voltage.isValid
onClicked: {
Global.pageManager.pushPage("/pages/settings/devicelist/battery/PageBatteryCellVoltages.qml",
{ "title": text, "bindPrefix": root.bindPrefix })
Expand Down
Loading

0 comments on commit b8bd71e

Please sign in to comment.