From 800b5e6515b2d68e589bf2307cd78ce8e059fcba Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 27 Aug 2025 17:17:07 +1000 Subject: plugin: saveItem ensure parent dir Also const everything and format --- components/images/CachingImage.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'components') diff --git a/components/images/CachingImage.qml b/components/images/CachingImage.qml index 75c9126..add459a 100644 --- a/components/images/CachingImage.qml +++ b/components/images/CachingImage.qml @@ -30,10 +30,8 @@ Image { onStatusChanged: { if (source == cachePath && status === Image.Error) source = path; - else if (source == path && status === Image.Ready) { - Paths.mkdir(Paths.imagecache); + else if (source == path && status === Image.Ready) CUtils.saveItem(this, cachePath); - } } Process { -- cgit v1.2.3-freya