gui: Do not prompt for UR changes if disabled (fixes #4444)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4448
This commit is contained in:
Audrius Butkevicius 2017-10-21 18:46:07 +00:00 committed by Jakob Borg
parent 46becc5338
commit b1ade6d0c0
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ angular.module('syncthing.core')
$http.get(urlbase + '/svc/report').success(function (data) {
$scope.reportData = data;
if ($scope.system && $scope.config.options.urSeen < $scope.system.urVersionMax) {
if ($scope.system && $scope.config.options.urAccepted > -1 && $scope.config.options.urSeen < $scope.system.urVersionMax && $scope.config.options.urAccepted < $scope.system.urVersionMax) {
// Usage reporting format has changed, prompt the user to re-accept.
$('#ur').modal();
}