From b1ade6d0c0b6459e930adb8eff57fdcc34b3eace Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 21 Oct 2017 18:46:07 +0000 Subject: [PATCH] gui: Do not prompt for UR changes if disabled (fixes #4444) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4448 --- gui/default/syncthing/core/syncthingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 64aa1c46..5df09bd1 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -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(); }