From 7014df051c606b71b3ee05f4a5cae2e84bb915c9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 19 Jan 2025 14:55:36 +0200 Subject: [PATCH] fix send button deactivation on enter last byte --- src/app/browser/window/tab/item/page/input/response/control.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page/input/response/control.rs b/src/app/browser/window/tab/item/page/input/response/control.rs index c36b210d..791038b0 100644 --- a/src/app/browser/window/tab/item/page/input/response/control.rs +++ b/src/app/browser/window/tab/item/page/input/response/control.rs @@ -40,7 +40,7 @@ impl Control { // Update children components self.counter.update(is_empty, bytes_left); self.send.update(match bytes_left { - Some(left) => !is_empty && left > 0, + Some(left) => !is_empty && left >= 0, None => false, }); }