From b30d3df15cf864d73ca9dc689611ff5adee10d64 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 5 Sep 2025 23:07:05 +0200 Subject: [PATCH] Notification: only display app icon/avatar if the notification requested it --- Modules/Notification/Notification.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 54f21ce..d15e305 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -198,15 +198,14 @@ Variants { Layout.preferredWidth: 40 * scaling Layout.preferredHeight: 40 * scaling Layout.alignment: Qt.AlignTop - // Start avatar aligned with body (below the summary) anchors.topMargin: textContent.childrenRect.y - // 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" + imagePath: model.image && model.image !== "" ? model.image : "" + fallbackIcon: "" borderColor: Color.transparent borderWidth: 0 - visible: (imagePath && imagePath !== "") + visible: (model.image && model.image !== "") + Layout.fillWidth: false + Layout.fillHeight: false } Column {