diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 5523309b..af6ef97f 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1506,13 +1506,13 @@ angular.module('syncthing.core') $scope.currentFolder.path = pathJoin($scope.config.options.defaultFolderPath, newvalue); }); - $scope.$watch('currentFolder.fsWatcherEnabled', function (newvalue) { - if (newvalue) { + $scope.fsWatcherToggled = function () { + if ($scope.currentFolder.fsWatcherEnabled) { $scope.currentFolder.rescanIntervalS = 3600; } else { $scope.currentFolder.rescanIntervalS = 60; } - }); + }; $scope.loadFormIntoScope = function (form) { console.log('loadFormIntoScope',form.$name); diff --git a/gui/default/syncthing/folder/editFolderModalView.html b/gui/default/syncthing/folder/editFolderModalView.html index 69627754..fc5b98f4 100644 --- a/gui/default/syncthing/folder/editFolderModalView.html +++ b/gui/default/syncthing/folder/editFolderModalView.html @@ -139,7 +139,7 @@   Help
-  Watch for Changes +  Watch for Changes