gui: Don't reload concurrently with saving config when changing theme (fixes #4127)

This commit is contained in:
Jakob Borg 2017-05-03 19:34:24 +02:00
parent d2699a20fc
commit 6386d079b0
1 changed files with 5 additions and 5 deletions

View File

@ -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 () {