From a3b3c88f0243793ce816d3b89f57d1c4ca6aa89d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 20 Mar 2026 22:38:09 +1100 Subject: [PATCH] fix: template string unused import false positives --- components/effects/OpacityMask.qml | 2 +- modules/sidebar/NotifDock.qml | 2 +- services/NotifData.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/effects/OpacityMask.qml b/components/effects/OpacityMask.qml index 22e42496..f852f447 100644 --- a/components/effects/OpacityMask.qml +++ b/components/effects/OpacityMask.qml @@ -5,5 +5,5 @@ ShaderEffect { required property Item source required property Item maskSource - fragmentShader: Qt.resolvedUrl(`${Quickshell.shellDir}/assets/shaders/opacitymask.frag.qsb`) + fragmentShader: Quickshell.shellPath("assets/shaders/opacitymask.frag.qsb") } diff --git a/modules/sidebar/NotifDock.qml b/modules/sidebar/NotifDock.qml index 9b865d4c..c38bddce 100644 --- a/modules/sidebar/NotifDock.qml +++ b/modules/sidebar/NotifDock.qml @@ -96,7 +96,7 @@ Item { Image { asynchronous: true - source: Qt.resolvedUrl(`${Quickshell.shellDir}/assets/dino.png`) + source: Quickshell.shellPath("assets/dino.png") fillMode: Image.PreserveAspectFit sourceSize.width: clipRect.width * 0.8 diff --git a/services/NotifData.qml b/services/NotifData.qml index f3bb9eb6..031c87e8 100644 --- a/services/NotifData.qml +++ b/services/NotifData.qml @@ -72,7 +72,7 @@ QtObject { h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909); const hash = (h2 >>> 0).toString(16).padStart(8, 0) + (h1 >>> 0).toString(16).padStart(8, 0); - const cache = `${Paths.notifimagecache}/${hash}.png`; + const cache = Paths.notifimagecache + "/${hash}.png"; CUtils.saveItem(this, Qt.resolvedUrl(cache), () => { notif.image = cache; notif.dummyImageLoader.active = false;