diff --git a/Daemons/NotifServer.qml b/Daemons/NotifServer.qml index 608ac03..00fa168 100644 --- a/Daemons/NotifServer.qml +++ b/Daemons/NotifServer.qml @@ -218,7 +218,7 @@ Singleton { function onImageChanged(): void { notif.imageSource = notif.notification.image || ""; notif.image = notif.imageSource; - notif.cacheImageIfNeeded(notif.imageSource); + notif.cacheImageIfNeeded(); } function onResidentChanged(): void { @@ -283,7 +283,9 @@ Singleton { } property int urgency: NotificationUrgency.Normal - function cacheImageIfNeeded(source: string): void { + function cacheImageIfNeeded(): void { + const source = imageSource; + if (!source || cachingImage) return;