diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 26e067a5974..7c098aa619b 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1513,7 +1513,10 @@ angular.module('syncthing.core') }; $scope.saveConfig = function () { - $('#savingChanges').modal(); + // Only block the UI when there is a significant delay. + var timeout = setTimeout(function () { + $('#savingChanges').modal('show'); + }, 200); var cfg = JSON.stringify($scope.config); var opts = { headers: { @@ -1521,8 +1524,10 @@ angular.module('syncthing.core') } }; return $http.put(urlbase + '/config', cfg, opts).finally(function () { + console.log('saveConfig', $scope.config); refreshConfig(); - $('#savingChanges').modal("hide"); + clearTimeout(timeout); + $('#savingChanges').modal('hide'); }).catch($scope.emitHTTPError); };