diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-27 22:12:51 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-27 22:12:51 +1000 |
| commit | fa920fd0877c4b05f3ad4ae121a1659d57fe3ca5 (patch) | |
| tree | 52590f4aaf314c197deabb6b2bb5db8bdfe2ef44 /widgets/CachingImage.qml | |
| parent | wallpapers: watch wallpaper dir for changes (diff) | |
| download | caelestia-shell-fa920fd0877c4b05f3ad4ae121a1659d57fe3ca5.tar.gz caelestia-shell-fa920fd0877c4b05f3ad4ae121a1659d57fe3ca5.tar.bz2 caelestia-shell-fa920fd0877c4b05f3ad4ae121a1659d57fe3ca5.zip | |
internal: use Process.exec
Diffstat (limited to '')
| -rw-r--r-- | widgets/CachingImage.qml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/widgets/CachingImage.qml b/widgets/CachingImage.qml index 8f7f711..a786720 100644 --- a/widgets/CachingImage.qml +++ b/widgets/CachingImage.qml @@ -16,11 +16,7 @@ Image { sourceSize.width: width sourceSize.height: height - onPathChanged: { - shaProc.signal(9); - shaProc.path = path.replace("file://", ""); - shaProc.running = true; - } + onPathChanged: shaProc.exec(["sha256sum", path.replace("file://", "")]) onCachePathChanged: { if (hash) @@ -40,9 +36,6 @@ Image { Process { id: shaProc - property string path - - command: ["sha256sum", path] stdout: StdioCollector { onStreamFinished: root.hash = text.split(" ")[0] } |