Commit 32b7b3bd authored by eekkelund's avatar eekkelund

[Notification] Try to fix icon in notification preview.

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