Skip to content

Commit

Permalink
Only show Sync Now button if account is connected
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Oct 26, 2022
1 parent 620f64e commit a617d6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/tray/SyncStatus.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a617d6d

Please sign in to comment.