NotificationHistory: even more fixes for appIcon

This commit is contained in:
Ly-sec 2025-09-10 12:55:56 +02:00
parent 291ffac102
commit d16d1c1d26

View file

@ -144,18 +144,17 @@ NPanel {
Layout.preferredWidth: 28 * scaling Layout.preferredWidth: 28 * scaling
Layout.preferredHeight: 28 * scaling Layout.preferredHeight: 28 * scaling
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
imagePath: (image // Prefer stable themed icons over transient image paths
&& image !== "") ? image : ((appIcon imagePath: (appIcon
&& appIcon !== "") ? AppIcons.iconFromName( && appIcon !== "") ? (AppIcons.iconFromName(appIcon, "application-x-executable")
appIcon, || appIcon) : ((AppIcons.iconForAppId(desktopEntry
"application-x-executable") : AppIcons.iconForAppId( || appName, "application-x-executable")
desktopEntry || appName, || (image && image
"application-x-executable")) !== "" ? image : AppIcons.iconFromName("application-x-executable",
"application-x-executable"))))
borderColor: Color.transparent borderColor: Color.transparent
borderWidth: 0 borderWidth: 0
visible: (image && image !== "") || (appIcon && AppIcons.iconFromName(appIcon, visible: true
"application-x-executable") !== "")
|| (AppIcons.iconForAppId(desktopEntry || appName, "application-x-executable") !== "")
} }
// Notification content column // Notification content column