summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Frei <freisim93@gmail.com>2021-06-21 22:53:50 +0200
committerGitHub <noreply@github.com>2021-06-21 22:53:50 +0200
commitc84e8d1e097682ed018a72f98ef259094b7c249f (patch)
tree633cca0e5c2f7f7b4bf43b36e45d80c1f1ff50d9
parent5fb72eed855a2f8b4a2a33d37cabf8374ce4e5f6 (diff)
gui: Consider size 0 items in remote completion (fixes #7741) (#7781)v1.18.0-rc.2v1.18.0
-rwxr-xr-xgui/default/syncthing/core/syncthingController.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js
index 8e5ce7987..5b12a3f11 100755
--- a/gui/default/syncthing/core/syncthingController.js
+++ b/gui/default/syncthing/core/syncthingController.js
@@ -592,10 +592,10 @@ angular.module('syncthing.core')
$scope.completion[device]._needItems = items + deletes;
}
- if (needed == 0 && deletes > 0) {
- // We don't need any data, but we have deletes that we need
- // to do. Drop down the completion percentage to indicate
- // that we have stuff to do.
+ if (needed == 0 && deletes + items > 0 ) {
+ // We don't need any data, but we have deletes or
+ // dirs/links/empty files that we need to do. Drop down the
+ // completion percentage to indicate that we have stuff to do.
$scope.completion[device]._total = 95;
}