mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
f5e1df0423
commit
fc2ca3a804
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue