Skip to content

Commit

Permalink
NXDRIVE-2651: Disable the local folder systray button when synchroniz…
Browse files Browse the repository at this point in the history
…ation is disabled (#2743)
  • Loading branch information
rom1win authored May 21, 2021
1 parent 39b0659 commit 0da3da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/changes/5.2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion nxdrive/data/qml/Systray.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0da3da3

Please sign in to comment.