QML UI: DC Download progress indicator

For now just do an indeterminate busy indicator - we can get more fancy
and use the libdivecomputer progress event, later.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-06-25 15:52:07 -07:00
parent f5e1df0423
commit fc2ca3a804

View file

@ -38,6 +38,7 @@ Kirigami.Page {
onFinished : {
importModel.repopulate()
acceptButton.enabled = true
dcDownloadProgress.visible = false
manager.appendTextToLog("DCDownloadThread finished")
}
}
@ -85,7 +86,9 @@ Kirigami.Page {
}
ProgressBar {
id: dcDownloadProgress
Layout.fillWidth: true
indeterminate: true
visible: false
}
@ -108,6 +111,7 @@ Kirigami.Page {
downloadThread.deviceData.product = product;
}
manager.appendTextToLog("DCDownloadThread started for " + downloadThread.deviceData.devName)
dcDownloadProgress.visible = true
downloadThread.start()
}
}