diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-02-08 23:44:17 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-02-08 23:56:08 +0200 |
commit | 22fb0c08444e451cdb994c78b5722a3f3d5be205 (patch) | |
tree | 144e3be56609cf8ba6f816e8c47877fa93b2db9e /src/components/mail/listing/compact.rs | |
parent | 647cb10b33b5dabc3cb5f5ee2d74205600f64fcc (diff) |
ui: handle ViewMailbox in listing.rs
handling viewmailbox inside a listing instead of their parent/manager
component is a leftover from before they even had a parent/manager.
Diffstat (limited to 'src/components/mail/listing/compact.rs')
-rw-r--r-- | src/components/mail/listing/compact.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/components/mail/listing/compact.rs b/src/components/mail/listing/compact.rs index 1c1c7ef0..b2beb2a3 100644 --- a/src/components/mail/listing/compact.rs +++ b/src/components/mail/listing/compact.rs @@ -1353,19 +1353,6 @@ impl Component for CompactListing { return true; } UIEvent::Action(ref action) => match action { - Action::ViewMailbox(idx) => { - if context.accounts[self.cursor_pos.0] - .folders_order - .get(*idx) - .is_none() - { - return true; - } - self.filtered_selection.clear(); - self.new_cursor_pos.1 = *idx; - self.refresh_mailbox(context, false); - return true; - } Action::Listing(Filter(ref filter_term)) if !self.unfocused => { self.filter(filter_term, context); self.dirty = true; |