SetupWizard: initial commit

This commit is contained in:
lysec
2025-10-15 18:01:08 +02:00
parent 7343d2403a
commit 514fdaa4cc
15 changed files with 2228 additions and 4 deletions
+18 -2
View File
@@ -31,8 +31,9 @@ Image {
}
onCachePathChanged: {
if (imageHash && cachePath) {
// Try to load the cached version, failure will be detected below in onStatusChanged
source = cachePath
// Check if cache file exists before trying to load it
cacheChecker.command = ["test", "-f", cachePath]
cacheChecker.running = true
}
}
onStatusChanged: {
@@ -48,4 +49,19 @@ Image {
})
}
}
// Check if cache file exists to avoid warnings
Process {
id: cacheChecker
running: false
onExited: function (exitCode) {
if (exitCode === 0 && root.cachePath) {
// Cache file exists, load it
root.source = root.cachePath
} else if (root.imagePath) {
// Cache doesn't exist, load original directly
root.source = root.imagePath
}
}
}
}