diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index ef8993be..df0aa688 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1211,13 +1211,14 @@ angular.module('syncthing.core') } }; $http.post(urlbase + '/system/config', cfg, opts).success(function () { - $http.get(urlbase + '/system/config/insync').success(function (data) { - $scope.configInSync = data.configInSync; - if (cb) { - cb(); - } - }); - }).error($scope.emitHTTPError); + refreshConfig(); + if (cb) { + cb(); + } + }).error(function (data, status, headers, config) { + refreshConfig(); + $scope.emitHTTPError(data, status, headers, config); + }); }; $scope.urVersions = function () {