Browse Source

mail/view: reset self.theme_default on loading envelope

self.theme_default might have initial value from MailView::default()
which does not correspond to actual theme_default
jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
7b3fb86483
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 1
      src/components/mail/view.rs

1
src/components/mail/view.rs

@ -276,6 +276,7 @@ impl MailView {
fn init_futures(&mut self, context: &mut Context) {
debug!("init_futures");
self.theme_default = crate::conf::value(context, "mail.view.body");
let mut pending_action = None;
let account = &mut context.accounts[&self.coordinates.0];
if debug!(account.contains_key(self.coordinates.2)) {

Loading…
Cancel
Save