diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-07 14:25:33 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-07 14:35:41 +0300 |
commit | a17f0b4fd44ca9d9a9e81c735ccd96493d8ed0b9 (patch) | |
tree | 4f4277ad4f14d0faa2da10eacec3494e386ca102 /src/components/mail/listing.rs | |
parent | 9edef4ecd2615b63285da92643ae982202f10ad5 (diff) |
listing: rework MailListingTrait
split redraw_list() to redraw_threads_list() and redraw_envelope_list()
Diffstat (limited to 'src/components/mail/listing.rs')
-rw-r--r-- | src/components/mail/listing.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs index 86eabfc7..4a3e19fa 100644 --- a/src/components/mail/listing.rs +++ b/src/components/mail/listing.rs @@ -228,8 +228,17 @@ pub trait MailListingTrait: ListingTrait { fn row_updates(&mut self) -> &mut SmallVec<[ThreadHash; 8]>; fn get_focused_items(&self, _context: &Context) -> SmallVec<[ThreadHash; 8]>; - fn redraw_list(&mut self, _context: &Context, _items: Box<dyn Iterator<Item = ThreadHash>>) { - unimplemented!() + fn redraw_threads_list( + &mut self, + context: &Context, + items: Box<dyn Iterator<Item = ThreadHash>>, + ); + + fn redraw_envelope_list( + &mut self, + _context: &Context, + _items: Box<dyn Iterator<Item = EnvelopeHash>>, + ) { } /// Use `force` when there have been changes in the mailbox or account lists in `context` |