Don't duplicate file name in the info line
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 15 Jun 2020 17:02:27 +0000 (19:02 +0200)
committerCamila <smayres@gmail.com>
Tue, 16 Jun 2020 16:52:20 +0000 (18:52 +0200)
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 <kevin.ottens@nextcloud.com>
src/gui/tray/Window.qml

index 31983684c1a14e474aa6334eb0189fb91cf52e05..5f646621be33ed748bf47dc9d09fa6fa01c65cfa 100644 (file)
@@ -491,9 +491,10 @@ Window {
 \r
                     Text {\r
                         id: activityTextInfo\r
-                        text: (type === "Activity" || type === "Sync") ? displayPath\r
+                        text: (type === "Sync") ? displayPath\r
                             : (type === "File") ? subject\r
-                            : message\r
+                            : (type === "Notification") ? message\r
+                            : ""\r
                         height: (text === "") ? 0 : activityTextTitle.height\r
                         width: Style.activityLabelBaseWidth + ((path === "") ? activityItem.height : 0) + ((link === "") ? activityItem.height : 0) - 8\r
                         elide: Text.ElideRight\r