From bc863584db6eb763b8badaf6e2553b0099089877 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 15 Jun 2020 19:02:27 +0200 Subject: [PATCH] Don't duplicate file name in the info line For the "Activity" type activities, displayPath contains the file name which is also in the subject. This was redundant, so now we don't display an info line at all for that type of activities. Signed-off-by: Kevin Ottens --- src/gui/tray/Window.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 31983684c..5f646621b 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -491,9 +491,10 @@ Window { Text { id: activityTextInfo - text: (type === "Activity" || type === "Sync") ? displayPath + text: (type === "Sync") ? displayPath : (type === "File") ? subject - : message + : (type === "Notification") ? message + : "" height: (text === "") ? 0 : activityTextTitle.height width: Style.activityLabelBaseWidth + ((path === "") ? activityItem.height : 0) + ((link === "") ? activityItem.height : 0) - 8 elide: Text.ElideRight -- 2.30.2