diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-07-25 20:41:26 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-07-26 16:09:41 +0300 |
commit | 26b327d86ac94d3affbf192250098dc47cc08b0a (patch) | |
tree | 62c135679f401f93e3201886bffc5a2a53ee3ace /src/components/mail/listing/conversations.rs | |
parent | b5530860d24bf148f9b788b6f4743604d76db24f (diff) |
mail/listing*: clear selection after perform_action()
Diffstat (limited to 'src/components/mail/listing/conversations.rs')
-rw-r--r-- | src/components/mail/listing/conversations.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/mail/listing/conversations.rs b/src/components/mail/listing/conversations.rs index b4988673..d83c0de0 100644 --- a/src/components/mail/listing/conversations.rs +++ b/src/components/mail/listing/conversations.rs @@ -131,6 +131,10 @@ impl MailListingTrait for ConversationsListing { &mut self.row_updates } + fn selection(&mut self) -> &mut HashMap<ThreadHash, bool> { + &mut self.selection + } + fn get_focused_items(&self, _context: &Context) -> SmallVec<[ThreadHash; 8]> { let is_selection_empty = self.selection.values().cloned().any(std::convert::identity); let i = [self.get_thread_under_cursor(self.cursor_pos.2)]; |