diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index e2db0fe9..6d0d5c1b 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1101,14 +1101,14 @@ angular.module('syncthing.core') }); }); - $scope.saveConfig(); + $scope.saveConfig(function () { + if (themeChanged) { + document.location.reload(true); + } + }); } $('#settings').modal("hide"); - - if (themeChanged) { - document.location.reload(true); - } }; $scope.saveAdvanced = function () {