From 0da3da3b991aff2ae439a7386d15d249826ba76b Mon Sep 17 00:00:00 2001 From: rom1win Date: Fri, 21 May 2021 17:14:32 +0200 Subject: [PATCH] NXDRIVE-2651: Disable the local folder systray button when synchronization is disabled (#2743) --- docs/changes/5.2.1.md | 2 +- nxdrive/data/qml/Systray.qml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changes/5.2.1.md b/docs/changes/5.2.1.md index 41176d9523..7d20cb59db 100644 --- a/docs/changes/5.2.1.md +++ b/docs/changes/5.2.1.md @@ -23,7 +23,7 @@ Release date: `2021-0x-xx` ## GUI -- [NXDRIVE-](https://jira.nuxeo.com/browse/NXDRIVE-2639): +- [NXDRIVE-2651](https://jira.nuxeo.com/browse/NXDRIVE-2651): Disable the local folder systray button when synchronization is disabled ## Packaging / Build diff --git a/nxdrive/data/qml/Systray.qml b/nxdrive/data/qml/Systray.qml index 8dd58d61c6..5e92e160eb 100755 --- a/nxdrive/data/qml/Systray.qml +++ b/nxdrive/data/qml/Systray.qml @@ -164,8 +164,10 @@ Rectangle { IconLabel { icon: MdiFont.Icon.folder iconColor: secondaryIcon - onClicked: api.open_local(accountSelect.getRole("uid"), "/") + onClicked: feat_synchronization.enabled ? api.open_local(accountSelect.getRole("uid"), "/") : null tooltip: qsTr("OPEN_ROOT_FOLDER").arg(APP_NAME) + tl.tr + enabled: feat_synchronization.enabled + opacity: feat_synchronization.enabled ? 1.0 : 0.5 } // Icon 4: open the Direct Transfer window