Notification: prefer notification image over app image

This commit is contained in:
Ly-sec 2025-09-04 16:12:50 +02:00
parent f8ed4f48cf
commit 3ceba43802
4 changed files with 8 additions and 4 deletions

View file

@ -200,11 +200,13 @@ Variants {
Layout.alignment: Qt.AlignTop
// Start avatar aligned with body (below the summary)
anchors.topMargin: textContent.childrenRect.y
imagePath: Icons.iconFromName(model.appIcon, "application-x-executable")
// Prefer notification-provided image (e.g., user avatar) then fall back to app icon
imagePath: (model.image && model.image !== "") ? model.image : Icons.iconFromName(
model.appIcon, "application-x-executable")
fallbackIcon: "apps"
borderColor: Color.transparent
borderWidth: 0
visible: imagePath && imagePath !== ""
visible: (imagePath && imagePath !== "")
}
Column {