diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 044a8b87a..208ac5046 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -799,20 +799,20 @@ angular.module('syncthing.core') if (state === 'error') { return 'stopped'; // legacy, the state is called "stopped" in the GUI } - if (state === 'idle' && folderInfo.needTotalItems > 0) { + + if (state !== 'idle') { + return state; + } + + if (folderInfo.needTotalItems > 0) { return 'outofsync'; } if ($scope.hasFailedFiles(folderCfg.id)) { return 'faileditems'; } - if (state === 'scanning') { - return state; - } - if (folderInfo.receiveOnlyTotalItems) { return 'localadditions'; } - if (folderCfg.devices.length <= 1) { return 'unshared'; }