Skip to content

Commit

Permalink
Disable config backup and restore buttons until custom configs are re…
Browse files Browse the repository at this point in the history
…ceived
  • Loading branch information
vedderb committed Apr 17, 2024
1 parent 05468f8 commit a098ec6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mobile/StartPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ Item {
}

ImageButton {
id: backupConfButton
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredWidth: 500
Expand All @@ -266,6 +267,7 @@ Item {
}

ImageButton {
id: restoreConfButton
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredWidth: 500
Expand Down Expand Up @@ -340,6 +342,17 @@ Item {
}
}
}

Timer {
id: toolsTimer
interval: 100
repeat: true
running: true
onTriggered: {
restoreConfButton.enabled = VescIf.customConfigRxDone()
backupConfButton.enabled = VescIf.customConfigRxDone()
}
}
}

GroupBox {
Expand Down

0 comments on commit a098ec6

Please sign in to comment.