Repository: syncthing/syncthing (language: go)

Issue:
Incorrect rescan interval when add encrypted folder with watch for changes enabled
Version: main

Value: 3600
Expected value: 86400

Watch for changes option obviously should not reduce rescan interval


Discussion / hints:

Fix patch:
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js
index 49d9d446e87..8658d76feb2 100755
--- a/gui/default/syncthing/core/syncthingController.js
+++ b/gui/default/syncthing/core/syncthingController.js
@@ -1988,10 +1988,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;
             }


Test patch: