Browse Source

mail/view.rs: try restarting future if get bytes fails

tags/alpha-0.6.0
Manos Pitsidianakis 8 months ago
parent
commit
2db983ae1f
Signed by: epilys GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/components/mail/view.rs

+ 4
- 0
src/components/mail/view.rs View File

@ -396,6 +396,7 @@ impl MailView {
format!("Failed to open envelope: {}", err.to_string()),
ERROR,
);
self.init_futures(context);
return;
}
}
@ -798,6 +799,7 @@ impl Component for MailView {
Some(NotificationType::ERROR),
));
log(format!("Failed to open envelope: {}", e.to_string()), ERROR);
self.init_futures(context);
return;
}
}
@ -1227,6 +1229,7 @@ impl Component for MailView {
Some(NotificationType::ERROR),
));
log(e.to_string(), ERROR);
self.init_futures(context);
return true;
}
};
@ -1301,6 +1304,7 @@ impl Component for MailView {
format!("Failed to open envelope: {}", err.to_string()),
ERROR,
);
self.init_futures(context);
return true;
}
}

Loading…
Cancel
Save