Commit 32b7b3bd authored by eekkelund's avatar eekkelund

[Notification] Try to fix icon in notification preview.

parent 945900fc
......@@ -132,6 +132,7 @@ Item {
width: notificationArea.notificationIconSize
height: width
source: {
if(notificationPreviewPresenter.notification) {
if (notificationPreviewPresenter.notification.icon) {
if (notificationPreviewPresenter.notification.icon.indexOf("/") == 0)
return "file://" + notificationPreviewPresenter.notification.icon
......@@ -143,6 +144,7 @@ Item {
else
return "image://theme/" + notificationPreviewPresenter.notification.appIcon
} else return defaultIcon
} else return defaultIcon
}
onStatusChanged: {
if (icon.status == Image.Error) {
......
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