Browse Source

listing: fix menu gaining focus if not visible

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
74f31875b8
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      src/components/mail/listing.rs

2
src/components/mail/listing.rs

@ -633,7 +633,7 @@ impl Component for Listing {
let shortcuts = self.get_shortcuts(context);
if self.focus == ListingFocus::Mailbox {
match *event {
UIEvent::Input(Key::Left) => {
UIEvent::Input(Key::Left) if self.menu_visibility => {
self.focus = ListingFocus::Menu;
self.ratio = 50;
self.set_dirty(true);

Loading…
Cancel
Save