Просмотр исходного кода

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

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4448
Audrius Butkevicius 8 лет назад
Родитель
Сommit
b1ade6d0c0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      gui/default/syncthing/core/syncthingController.js

+ 1 - 1
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();
                 }