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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user