Merge pull request #548 from iamkartiknayak/fix/show-details-toggle

fix(toggle-show-details): fix show-details toggle
This commit is contained in:
Jeremy Soller 2024-10-03 09:55:11 -06:00 committed by GitHub
commit 9248a478d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}