Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined references to source and dataValue #390

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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