mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-15 06:12:47 +00:00
ui/listing: prevent spinning on is_online check
Since self.component is never drawn if account is not online, it will remain dirty and everything will be redrawn again and again, blocking the UI.
This commit is contained in:
parent
ab3e01359a
commit
10368612ab
@ -344,6 +344,7 @@ impl Component for Listing {
|
|||||||
(set_x(upper_left, x + 1), bottom_right),
|
(set_x(upper_left, x + 1), bottom_right),
|
||||||
None,
|
None,
|
||||||
);
|
);
|
||||||
|
self.component.set_dirty(false);
|
||||||
context.dirty_areas.push_back(area);
|
context.dirty_areas.push_back(area);
|
||||||
} else {
|
} else {
|
||||||
self.component
|
self.component
|
||||||
|
Loading…
Reference in New Issue
Block a user