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 Jakob Borg
parent ab92f8520c
commit ebad9e2073

View File

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