gui: Consider size 0 items in remote completion (fixes #7741) (#7781)

This commit is contained in:
Simon Frei 2021-06-21 22:53:50 +02:00 committed by GitHub
parent 5fb72eed85
commit c84e8d1e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}