1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 12:38:31 -04:00

fix(Notifications): update hasNotificationImage logic to support file paths

- Fixes #2533
This commit is contained in:
purian23
2026-07-03 13:38:21 -04:00
parent 8e7126472e
commit b8fd52e00f
4 changed files with 12 additions and 6 deletions
@@ -866,6 +866,11 @@ Singleton {
readonly property string cleanImage: {
if (!image)
return "";
if (image.startsWith("image://icon/")) {
const payload = image.substring(13);
if (payload.startsWith("/"))
return "file://" + payload;
}
return Paths.strip(image);
}
property int urgencyOverride: notification?.urgency ?? NotificationUrgency.Normal