Small UI tweaks && bug fixes.

This commit is contained in:
Black Hat
2018-07-20 12:14:02 +08:00
parent 80fca26092
commit 6f6a7da414
11 changed files with 65 additions and 47 deletions

View File

@@ -8,7 +8,7 @@ Item {
readonly property bool downloaded: progressInfo && progressInfo.completed
Rectangle {
z: 5
z: -2
height: parent.height
width: progressInfo.active && !progressInfo.completed ? progressInfo.progress / progressInfo.total * parent.width : 0
color: Material.accent
@@ -25,9 +25,7 @@ Item {
}
onDownloadedChanged: {
if (downloaded && openOnFinished) openSavedFile()
}
onDownloadedChanged: downloaded && openOnFinished ? openSavedFile() : {}
function saveFileAs() {
locationDialog.open()