From 55d6035f1ecf39a6b5ff262791981405de28c7fa Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 14 Jun 2022 17:25:01 +0200 Subject: [PATCH 1/2] absolutePath was undefined. It was not part of the model, the correct one was path (PathRole). Signed-off-by: Camila --- src/gui/tray/ActivityItem.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/tray/ActivityItem.qml b/src/gui/tray/ActivityItem.qml index 68a153510..bc591d0f5 100644 --- a/src/gui/tray/ActivityItem.qml +++ b/src/gui/tray/ActivityItem.qml @@ -79,7 +79,8 @@ MouseArea { adjustedHeaderColor: root.adjustedHeaderColor - onShareButtonClicked: Systray.openShareDialog(model.displayPath, model.absolutePath) + onShareButtonClicked: Systray.openShareDialog(model.displayPath, model.path) + onDismissButtonClicked: activityModel.slotTriggerDismiss(model.index) } From ac0c227263b7aafdda5f05466feb6cbd89470f19 Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 14 Jun 2022 17:39:08 +0200 Subject: [PATCH 2/2] Remove unused signal fileActivityButtonClicked. Signed-off-by: Camila --- src/gui/tray/ActivityItem.qml | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/tray/ActivityItem.qml b/src/gui/tray/ActivityItem.qml index bc591d0f5..a5ff7e379 100644 --- a/src/gui/tray/ActivityItem.qml +++ b/src/gui/tray/ActivityItem.qml @@ -20,8 +20,6 @@ MouseArea { property color adjustedHeaderColor: Theme.darkMode ? Qt.lighter(UserModel.currentUser.headerColor, 2) : Qt.darker(UserModel.currentUser.headerColor, 1.5) - signal fileActivityButtonClicked(string absolutePath) - enabled: (model.path !== "" || model.link !== "" || model.isCurrentUserFileActivity === true) hoverEnabled: true