Commit 32b7b3bd authored by eekkelund's avatar eekkelund

[Notification] Try to fix icon in notification preview.

parent 945900fc
...@@ -132,16 +132,18 @@ Item { ...@@ -132,16 +132,18 @@ Item {
width: notificationArea.notificationIconSize width: notificationArea.notificationIconSize
height: width height: width
source: { source: {
if (notificationPreviewPresenter.notification.icon) { if(notificationPreviewPresenter.notification) {
if (notificationPreviewPresenter.notification.icon.indexOf("/") == 0) if (notificationPreviewPresenter.notification.icon) {
return "file://" + notificationPreviewPresenter.notification.icon if (notificationPreviewPresenter.notification.icon.indexOf("/") == 0)
else return "file://" + notificationPreviewPresenter.notification.icon
return "image://theme/" + notificationPreviewPresenter.notification.icon else
}else if (notificationPreviewPresenter.notification.appIcon) { return "image://theme/" + notificationPreviewPresenter.notification.icon
if (notificationPreviewPresenter.notification.appIcon.indexOf("/") == 0) }else if (notificationPreviewPresenter.notification.appIcon) {
return "file://" + notificationPreviewPresenter.notification.appIcon if (notificationPreviewPresenter.notification.appIcon.indexOf("/") == 0)
else return "file://" + notificationPreviewPresenter.notification.appIcon
return "image://theme/" + notificationPreviewPresenter.notification.appIcon else
return "image://theme/" + notificationPreviewPresenter.notification.appIcon
} else return defaultIcon
} else return defaultIcon } else return defaultIcon
} }
onStatusChanged: { onStatusChanged: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment