Inclusion of possible 'notification' type descriptions in activity
authorDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Fri, 17 Jan 2020 13:50:05 +0000 (14:50 +0100)
committerDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Fri, 17 Jan 2020 13:50:05 +0000 (14:50 +0100)
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
src/gui/tray/Window.qml

index 6423e1bc5d48cf692477399b5aa6c998c11dad72..f3fed155a9601cb1b25dc02e6964cd541e2f341b 100644 (file)
@@ -524,7 +524,7 @@ Window {
                     Layout.alignment: Qt.AlignLeft\r
                     Text {\r
                         id: activityTextTitle\r
-                        text: (type === "Activity") ? subject : message\r
+                        text: (type === "Activity" || type === "Notification") ? subject : message\r
                         width: 240 + ((path === "") ? activityItem.height : 0) + ((link === "") ? activityItem.height : 0) - 8\r
                         elide: Text.ElideRight\r
                         font.pixelSize: 12\r
@@ -532,8 +532,8 @@ Window {
 \r
                     Text {\r
                         id: activityTextInfo\r
-                        text: displaypath\r
-                        height: (displaypath === "") ? 0 : activityTextTitle.height\r
+                        text: (type === "Activity" || type === "File" || type === "Sync") ? displaypath : message\r
+                        height: (text === "") ? 0 : activityTextTitle.height\r
                         width: 240 + ((path === "") ? activityItem.height : 0) + ((link === "") ? activityItem.height : 0) - 8\r
                         elide: Text.ElideRight\r
                         font.pixelSize: 10\r