Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClaudio Cambra <claudio.cambra@nextcloud.com>2022-10-26 13:47:42 +0300
committerClaudio Cambra <claudio.cambra@gmail.com>2022-10-29 16:54:19 +0300
commit09997b189f4a8fb64dc80e7e06e23783422131e0 (patch)
treeaee4a935084a2610103f1a9874071df2d2001616 /src
parent6f67c2ec881f4e35f5338b5d196bc2d7ff89e1d5 (diff)
Only show Sync Now button if account is connected
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/tray/SyncStatus.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/tray/SyncStatus.qml b/src/gui/tray/SyncStatus.qml
index ea9480528..b6ff2713c 100644
--- a/src/gui/tray/SyncStatus.qml
+++ b/src/gui/tray/SyncStatus.qml
@@ -116,7 +116,9 @@ RowLayout {
bold: true
bgColor: Style.currentUserHeaderColor
- visible: !syncStatus.syncing && NC.UserModel.currentUser.hasLocalFolder
+ visible: !syncStatus.syncing &&
+ NC.UserModel.currentUser.hasLocalFolder &&
+ NC.UserModel.currentUser.isConnected
enabled: visible
onClicked: {
if(!syncStatus.syncing) {