fix send button deactivation on enter last byte

This commit is contained in:
yggverse 2025-01-19 14:55:36 +02:00
parent 89469c2aa3
commit 7014df051c

View File

@ -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,
});
}