Skip to content

Commit

Permalink
Update GroundPowerWidget.qml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 12, 2024
1 parent 469e359 commit 9922e2f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion qml/ui/widgets/GroundPowerWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ BaseWidget {
height: parent.height
anchors.rightMargin: 6
anchors.right: parent.right
model: ["Lipo", "LiIon", "LiFe"]
model: ["Lipo", "LiIon", "LiFe", "Custom"]
onCurrentIndexChanged: {
switch (batteryComboBox.currentIndex) {
case 0:
Expand All @@ -93,9 +93,24 @@ BaseWidget {
settings.ground_battery_mid = 35;
settings.ground_battery_full = 37;
break;
case 2:
settings.ground_battery_type = 3;
customValues.visible=true;
break;
}
}
}
Text {
id:customValues
visible: false
text: qsTr("Battery Type")
color: "white"
height: parent.height
font.bold: true
font.pixelSize: detailPanelFontPixels
anchors.left: parent.left
verticalAlignment: Text.AlignVCenter
}
}
}
}
Expand Down

0 comments on commit 9922e2f

Please sign in to comment.