Merge pull request #5097 from nextcloud/bugfix/sync-now-visible-connected

Only show Sync Now button if account is connected
This commit is contained in:
Claudio Cambra 2022-10-29 17:03:46 +02:00 committed by GitHub
commit 09c6f5a115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {