From 6386d079b098f3d8bbc82ee9b3942b6ca525983e Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 3 May 2017 19:34:24 +0200 Subject: [PATCH] gui: Don't reload concurrently with saving config when changing theme (fixes #4127) --- gui/default/syncthing/core/syncthingController.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 () {