This commit is contained in:
committed by
Jakob Borg
parent
a48a31e3f5
commit
baa3aa4bad
@@ -1699,6 +1699,7 @@ angular.module('syncthing.core')
|
|||||||
delete folderCfg.versioning;
|
delete folderCfg.versioning;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ignoresLoaded = !$('#folder-ignores textarea').is(':disabled');
|
||||||
var ignores = $('#folder-ignores textarea').val().split('\n');
|
var ignores = $('#folder-ignores textarea').val().split('\n');
|
||||||
// Split always returns a minimum 1-length array even for no patterns
|
// Split always returns a minimum 1-length array even for no patterns
|
||||||
if (ignores.length === 1 && ignores[0] === "") {
|
if (ignores.length === 1 && ignores[0] === "") {
|
||||||
@@ -1711,7 +1712,7 @@ angular.module('syncthing.core')
|
|||||||
$scope.folders[folderCfg.id] = folderCfg;
|
$scope.folders[folderCfg.id] = folderCfg;
|
||||||
$scope.config.folders = folderList($scope.folders);
|
$scope.config.folders = folderList($scope.folders);
|
||||||
|
|
||||||
if ($scope.editingExisting && ignores !== folderCfg.ignores) {
|
if (ignoresLoaded && $scope.editingExisting && ignores !== folderCfg.ignores) {
|
||||||
saveIgnores(ignores);
|
saveIgnores(ignores);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user