Explorar o código

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

bt90 %!s(int64=2) %!d(string=hai) anos
pai
achega
ac2e444a97
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      gui/default/syncthing/core/syncthingController.js

+ 5 - 2
gui/default/syncthing/core/syncthingController.js

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