notifs: handle file:// urls in appIcon source
This commit is contained in:
parent
dd88b8a4c2
commit
b31fab5148
2 changed files with 3 additions and 3 deletions
|
|
@ -271,7 +271,7 @@ M.HoverPanel {
|
||||||
const ic = notifDelegate.modelData.appIcon;
|
const ic = notifDelegate.modelData.appIcon;
|
||||||
if (!ic)
|
if (!ic)
|
||||||
return "";
|
return "";
|
||||||
return ic.startsWith("/") ? ic : Quickshell.iconPath(ic, "dialog-information");
|
return (ic.startsWith("/") || ic.startsWith("file://")) ? ic : Quickshell.iconPath(ic, "dialog-information");
|
||||||
}
|
}
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
@ -382,7 +382,7 @@ M.HoverPanel {
|
||||||
const ic = notifDelegate._notif?.appIcon;
|
const ic = notifDelegate._notif?.appIcon;
|
||||||
if (!ic)
|
if (!ic)
|
||||||
return "";
|
return "";
|
||||||
return ic.startsWith("/") ? ic : Quickshell.iconPath(ic, "dialog-information");
|
return (ic.startsWith("/") || ic.startsWith("file://")) ? ic : Quickshell.iconPath(ic, "dialog-information");
|
||||||
}
|
}
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ PanelWindow {
|
||||||
const ic = popupItem.modelData.appIcon;
|
const ic = popupItem.modelData.appIcon;
|
||||||
if (!ic)
|
if (!ic)
|
||||||
return "";
|
return "";
|
||||||
return ic.startsWith("/") ? ic : Quickshell.iconPath(ic, "dialog-information");
|
return (ic.startsWith("/") || ic.startsWith("file://")) ? ic : Quickshell.iconPath(ic, "dialog-information");
|
||||||
}
|
}
|
||||||
visible: status === Image.Ready
|
visible: status === Image.Ready
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue