From c75cfcfd06d09b5b2f7c242cfe86a7751d231587 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 2 Feb 2019 13:06:01 +0100 Subject: [PATCH] gui: Enable large blocks by default, add to config dialog (#5405) Also moves a couple of that were out of balance and reindents accordingly, so try a white space insensitive diff when reviewing... --- .../syncthing/core/syncthingController.js | 3 +- .../syncthing/folder/editFolderModalView.html | 112 +++++++++--------- 2 files changed, 59 insertions(+), 56 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index f819af01..8446b0ba 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -77,7 +77,8 @@ angular.module('syncthing.core') staggeredVersionsPath: "", externalCommand: "", autoNormalize: true, - path: "" + path: "", + useLargeBlocks: true, }; $scope.localStateTotal = { diff --git a/gui/default/syncthing/folder/editFolderModalView.html b/gui/default/syncthing/folder/editFolderModalView.html index f90e4e3d..6d7074b3 100644 --- a/gui/default/syncthing/folder/editFolderModalView.html +++ b/gui/default/syncthing/folder/editFolderModalView.html @@ -150,76 +150,78 @@
  Help
+
 Watch for Changes +

Watching for changes discovers most changes without periodic scanning.

+ Variable Size Blocks +

Variable size blocks (also "large blocks") are more efficient for large files.

-
- Full Rescan Interval (s) -
- -
-
+ +

The rescan interval must be a non-negative number of seconds.

-
- -
-
- -   Help - -

Files are protected from changes made on other devices, but changes made on this device will be sent to the rest of the cluster.

-

Files are synchronized from the cluster, but any changes made locally will not be sent to other devices.

-
-
- - -
-
-
-
-
+
-
- +
+ +   Help + +

Files are protected from changes made on other devices, but changes made on this device will be sent to the rest of the cluster.

+

Files are synchronized from the cluster, but any changes made locally will not be sent to other devices.

-
- + + + + + +
-

- Enter a non-negative number (e.g., "2.35") and select a unit. Percentages are as part of the total disk size. -

-
-
-
- Ignore -

File permission bits are ignored when looking for changes. Use on FAT file systems.

-

- Enter a non-negative number (e.g., "2.35") and select a unit. Percentages are as part of the total disk size. -

+ +
+
+
+
+
+ +
+
+ +
+
+

+ Enter a non-negative number (e.g., "2.35") and select a unit. Percentages are as part of the total disk size. +

+
+
+
+ Ignore +

File permission bits are ignored when looking for changes. Use on FAT file systems.

+

+ Enter a non-negative number (e.g., "2.35") and select a unit. Percentages are as part of the total disk size. +

+
+