We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4d57d0 commit ded5dd9Copy full SHA for ded5dd9
Settings.qml
@@ -53,9 +53,13 @@ Item {
53
id: fileDialog
54
title: "Please choose a folder"
55
onAccepted: {
56
- updaterSettings.installPath = Qt.resolvedUrl(fileDialog.fileUrl).substring('file://'.length);
57
- updaterSettings.currentVersion = "";
58
- updaterSettings.installFinished = false
+ var clipLength = 'file://'.length;
+ // On Windows, apparently, there are three slashes. Increment
+ // the substring clip length as a result.
59
+ if (Qt.platform.os === "windows") {
60
+ clipLength += 1;
61
+ }
62
+ updaterSettings.installPath = Qt.resolvedUrl(fileDialog.fileUrl).substring(clipLength);
63
}
64
selectFolder: true
65
0 commit comments