gui: Fix regression on refreshNeed (fixes #6560, ref #6452) (#6561)

This commit is contained in:
Simon Frei 2020-04-21 22:42:59 +02:00 committed by GitHub
parent d3ed4de4ed
commit d68fa84055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,12 +298,12 @@ angular.module('syncthing.core')
for (var folder in $scope.progress) {
if (!(folder in progress)) {
if ($scope.neededFolder === folder) {
refreshNeed($scope.needed.page, $scope.needed.perpage);
$scope.refreshNeed($scope.needed.page, $scope.needed.perpage);
}
} else if ($scope.neededFolder === folder) {
for (file in $scope.progress[folder]) {
if (!(file in progress[folder])) {
refreshNeed($scope.needed.page, $scope.needed.perpage);
$scope.refreshNeed($scope.needed.page, $scope.needed.perpage);
break;
}
}