diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-12-14 18:52:33 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-12-14 18:57:58 +0200 |
commit | 10368612ab1a286e9a80d5889b76cfc3058c0440 (patch) | |
tree | fb7833e16e52512e5e093a5d7d4cf7cb254d1063 /ui/src/components/mail/listing.rs | |
parent | ab3e01359a077805b7f902a1d746ec5fc0ac1705 (diff) |
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.
Diffstat (limited to 'ui/src/components/mail/listing.rs')
-rw-r--r-- | ui/src/components/mail/listing.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/mail/listing.rs b/ui/src/components/mail/listing.rs index a44c6ac6..c6825a99 100644 --- a/ui/src/components/mail/listing.rs +++ b/ui/src/components/mail/listing.rs @@ -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 |