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:
Manos Pitsidianakis 2019-12-14 18:52:33 +02:00
parent ab3e01359a
commit 10368612ab
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -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