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; $scope.completion[device]._needItems = items + deletes;
} }
if (needed == 0 && deletes > 0) { if (needed == 0 && deletes + items > 0 ) {
// We don't need any data, but we have deletes that we need // We don't need any data, but we have deletes or
// to do. Drop down the completion percentage to indicate // dirs/links/empty files that we need to do. Drop down the
// that we have stuff to do. // completion percentage to indicate that we have stuff to do.
$scope.completion[device]._total = 95; $scope.completion[device]._total = 95;
} }