From ac2e444a97cb8ec3d2f899aa718031c55fbbfdcc Mon Sep 17 00:00:00 2001 From: bt90 Date: Fri, 6 Oct 2023 12:27:13 +0200 Subject: [PATCH] gui: Fix favicon status (fixes #9149) (#9150) --- gui/default/syncthing/core/syncthingController.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index b09965f9f..e92b0ab66 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/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'; }