Skip to content
Open
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
13 changes: 12 additions & 1 deletion mobile/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ ApplicationWindow {

Page {
id: bmsPage
visible: false

Loader {
anchors.fill: parent
asynchronous: true
Expand Down Expand Up @@ -513,7 +515,7 @@ ApplicationWindow {

Repeater {
id: rep
model: ["Start", "RT Data", "BMS", "Profiles", "Terminal"]
model: ["Start", "RT Data", "Profiles", "Terminal"]

TabButton {
text: modelData
Expand Down Expand Up @@ -562,6 +564,13 @@ ApplicationWindow {
}
}

TabButton {
id: bmsDataButton
visible: bmsPage.visible
text: "BMS"
width: tabBar.buttonWidth
}

TabButton {
id: confMotorButton
visible: confPageMotor.visible
Expand Down Expand Up @@ -1146,6 +1155,8 @@ ApplicationWindow {

function onUpdated() {
confTimer.mcConfRx = true
/* BMS button is visible if BMS Type != None, or if it's not an ESC */
bmsDataButton.visible = (mMcConf.getParamInt("bms.type") > 0) || (VescIf.getFwSupportsConfiguration() == false)
}
}

Expand Down