From a617d6d919b2f4e8cea9f5d0b4b378a5ebbb6af8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 26 Oct 2022 12:47:42 +0200 Subject: [PATCH] Only show Sync Now button if account is connected Signed-off-by: Claudio Cambra --- src/gui/tray/SyncStatus.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/tray/SyncStatus.qml b/src/gui/tray/SyncStatus.qml index ea9480528f9d7..b6ff2713ce70e 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) {