From 552ea686724dce5e23be5bd8cf40cad80557331f Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Wed, 20 Nov 2019 19:06:03 +0100 Subject: [PATCH] gui: Prioritize non-idle folder states (fixes #6169) (#6170) --- gui/default/syncthing/core/syncthingController.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 1aeac8bfb..a1e1b015e 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'; }