aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome/qml
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2022-01-14 17:47:39 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-01-17 15:09:43 +0000
commitdab8caf6d98ce5a94309dfe01bbffdef00293d2e (patch)
tree95794d2252d8424609bfaec7d2f76f031a10e8d2 /src/plugins/studiowelcome/qml
parent4c21852ec66715bd56881eb482f5e0c94f81ef3a (diff)
StudioWelcome: Enable integrating download progress
Change-Id: Iad18c1a0bc49f87a98dcdff46542cf4c373de875 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/studiowelcome/qml')
-rw-r--r--src/plugins/studiowelcome/qml/downloaddialog/main.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/studiowelcome/qml/downloaddialog/main.qml b/src/plugins/studiowelcome/qml/downloaddialog/main.qml
index cb7f62a68c..33acd7e3e4 100644
--- a/src/plugins/studiowelcome/qml/downloaddialog/main.qml
+++ b/src/plugins/studiowelcome/qml/downloaddialog/main.qml
@@ -45,15 +45,18 @@ Rectangle {
signal canceled
signal accepted
+ property string tempFile
+ property string completeBaseName
+
StackLayout {
id: stackLayout
anchors.fill: parent
- currentIndex: 0
+ currentIndex: root.tempFile.length === 0 ? 0 : 1
FileExtractor {
id: fileExtractor
- sourceFile: downloader.tempFile
- archiveName: downloader.completeBaseName
+ archiveName: root.completeBaseName.length === 0 ? downloader.completeBaseName : root.completeBaseName
+ sourceFile: root.tempFile.length === 0 ? downloader.tempFile : root.tempFile
}
FileDownloader {