From 06a1635d1dfe5b16073d6f8c8c1eee3635c6cbea Mon Sep 17 00:00:00 2001 From: Aleksey Vasenev Date: Thu, 3 Nov 2022 14:07:36 +0300 Subject: [PATCH] gui: Fix rescan interval when add encrypted folder with watch for changes enabled (fixes #8570) (#8571) --- gui/default/syncthing/core/syncthingController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 96e29e631..4fe78e7ff 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1979,10 +1979,10 @@ angular.module('syncthing.core') return; } var idx; - if ($scope.currentFolder.fsWatcherEnabled) { - idx = 1; - } else if ($scope.currentFolder.type === 'receiveencrypted') { + if ($scope.currentFolder.type === 'receiveencrypted') { idx = 2; + } else if ($scope.currentFolder.fsWatcherEnabled) { + idx = 1; } else { idx = 0; }