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.
async
Manos Pitsidianakis 2019-12-14 18:52:33 +02:00
parent ab3e01359a
commit 10368612ab
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 0 deletions

View File

@ -344,6 +344,7 @@ impl Component for Listing {
(set_x(upper_left, x + 1), bottom_right),
None,
);
self.component.set_dirty(false);
context.dirty_areas.push_back(area);
} else {
self.component