We then get more items clickable, in particular the bottom one proposing
to open the activity application. Now we can click it and it opens the
activity application straight away.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
spacing: 0\r
\r
MouseArea {\r
- enabled: (path !== "")\r
+ enabled: (path !== "" || link !== "")\r
anchors.left: activityItem.left\r
anchors.right: ((shareButton.visible) ? shareButton.left : activityItem.right)\r
height: parent.height\r
anchors.margins: 2\r
hoverEnabled: true\r
- onClicked: Qt.openUrlExternally(path)\r
+ onClicked: {\r
+ if (path !== "") {\r
+ Qt.openUrlExternally(path)\r
+ } else {\r
+ Qt.openUrlExternally(link)\r
+ }\r
+ }\r
ToolTip.visible: hovered\r
ToolTip.delay: 1000\r
- ToolTip.text: qsTr("Open sync item locally")\r
+ ToolTip.text: path !== "" ? qsTr("Open sync item locally") : qsTr("Open URL")\r
Rectangle {\r
anchors.fill: parent\r
color: (parent.containsMouse ? Style.lightHover : "transparent")\r