gui: Fix favicon status (fixes #9149) (#9150)

This commit is contained in:
bt90 2023-10-06 12:27:13 +02:00 committed by GitHub
parent 4f6b86a1c0
commit ac2e444a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1144,6 +1144,9 @@ angular.module('syncthing.core')
// loop through all devices // loop through all devices
var deviceCount = 0; var deviceCount = 0;
for (var id in $scope.devices) { for (var id in $scope.devices) {
if (id === $scope.myID) {
continue
}
var status = $scope.deviceStatus({ var status = $scope.deviceStatus({
deviceID: id deviceID: id
}); });
@ -1176,8 +1179,8 @@ angular.module('syncthing.core')
return 'notify'; return 'notify';
} }
// all used devices are paused except (this) one // all used devices are paused
if (pauseCount === deviceCount - 1) { if (pauseCount === deviceCount && deviceCount > 0) {
return 'pause'; return 'pause';
} }