From 932bd223a2faa07d5adbce79f559fb39789a52e6 Mon Sep 17 00:00:00 2001 From: Kartik Nayak Date: Thu, 3 Oct 2024 18:48:52 +0530 Subject: [PATCH] fix(toggle-show-details): fix show-details toggle --- src/app.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index 3aab4ae..e5d15cb 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2157,10 +2157,8 @@ impl Application for App { Message::ToggleShowDetails => { let show_details = !self.config.show_details; //TODO: move to update_config? - if show_details { - self.context_page = ContextPage::Preview(None, PreviewKind::Selected); - self.core.window.show_context = true; - } + self.context_page = ContextPage::Preview(None, PreviewKind::Selected); + self.core.window.show_context = show_details; config_set!(show_details, show_details); return self.update_config(); }