Forráskód Böngészése

gui: Fix rescan interval when add encrypted folder with watch for changes enabled (fixes #8570) (#8571)

Aleksey Vasenev 3 éve
szülő
commit
06a1635d1d
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      gui/default/syncthing/core/syncthingController.js

+ 3 - 3
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;
             }