From d0836824186c52b4cdb6f5e5c1f1d77a68120f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Wilczy=C5=84ski?= Date: Fri, 29 Aug 2025 15:56:55 +0200 Subject: [PATCH] chore(gui): use steps of 1024 KiB for bandwidth rate limits (#10316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, the bandwidth limit input fields have no step defined, and as such they use the default value of "1". Taking into account the fact that these fields use KiB as their measurements, it makes more sense to use larger steps, such as "1024" (1 MiB), as in most cases, it is very unlikely that the user needs to have byte-level control over the limits. Note that these steps only apply to increasing the values by using the arrow keys, and the user is still allowed to input any value they want manually. Signed-off-by: Tomasz Wilczyński Signed-off-by: Tomasz Wilczyński --- gui/default/syncthing/device/editDeviceModalView.html | 4 ++-- gui/default/syncthing/settings/settingsModalView.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/default/syncthing/device/editDeviceModalView.html b/gui/default/syncthing/device/editDeviceModalView.html index 3e8659ac6..c874cff04 100644 --- a/gui/default/syncthing/device/editDeviceModalView.html +++ b/gui/default/syncthing/device/editDeviceModalView.html @@ -159,7 +159,7 @@
Incoming Rate Limit (KiB/s)
- +

The rate limit must be a non-negative number (0: no limit)

@@ -168,7 +168,7 @@
Outgoing Rate Limit (KiB/s)
- +

The rate limit must be a non-negative number (0: no limit)

diff --git a/gui/default/syncthing/settings/settingsModalView.html b/gui/default/syncthing/settings/settingsModalView.html index d226eb585..7245c9f20 100644 --- a/gui/default/syncthing/settings/settingsModalView.html +++ b/gui/default/syncthing/settings/settingsModalView.html @@ -194,7 +194,7 @@
- +

The rate limit must be a non-negative number (0: no limit)

@@ -203,7 +203,7 @@
- +

The rate limit must be a non-negative number (0: no limit)