Skip to content

Commit

Permalink
Fix undefined references to source and dataValue
Browse files Browse the repository at this point in the history
  • Loading branch information
blammit committed Jul 17, 2023
1 parent 24375dd commit a18e2ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/settings/GeneratorCondition.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ListNavigationItem {
// Autocalculate step size based on number of decimals
readonly property real stepSize: Math.pow(10, -decimals)

secondaryText: dataValue === 1 ? CommonWords.enabled : CommonWords.disabled
secondaryText: dataPoint.value === 1 ? CommonWords.enabled : CommonWords.disabled
onClicked: Global.pageManager.pushPage(subpage)

DataPoint {
Expand Down
4 changes: 2 additions & 2 deletions pages/settings/PageGeneratorConditions.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ Page {
text: qsTrId("page_generator_conditions_battery_monitor")
//% "Unavailable monitor, set another"
defaultSecondaryText: qsTrId("page_generator_conditions_unavailable_monitor_set_another")
source: bindPrefix + "/BatteryService"
dataSource: bindPrefix + "/BatteryService"
visible: dataValue !== "default"
}

ListRadioButtonGroup {
//% "On loss of communication"
text: qsTrId("page_generator_conditions_on_loss_of_communication")
source: bindPrefix + "/OnLossCommunication"
dataSource: bindPrefix + "/OnLossCommunication"
optionModel: [
//% "Stop generator"
{ display: qsTrId("page_generator_conditions_stop_generator"), value: 0 },
Expand Down

0 comments on commit a18e2ed

Please sign in to comment.