mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 00:14:13 +00:00
fix send button deactivation on enter last byte
This commit is contained in:
parent
89469c2aa3
commit
7014df051c
@ -40,7 +40,7 @@ impl Control {
|
|||||||
// Update children components
|
// Update children components
|
||||||
self.counter.update(is_empty, bytes_left);
|
self.counter.update(is_empty, bytes_left);
|
||||||
self.send.update(match bytes_left {
|
self.send.update(match bytes_left {
|
||||||
Some(left) => !is_empty && left > 0,
|
Some(left) => !is_empty && left >= 0,
|
||||||
None => false,
|
None => false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user