mail/listing: show mailbox loading state in status

This commit is contained in:
Manos Pitsidianakis 2020-12-02 17:08:59 +02:00
parent 7efbe6d692
commit f8a47586e9
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -1509,10 +1509,15 @@ impl Component for Listing {
.ok()
.unwrap_or((0, 0));
format!(
"Mailbox: {}, Messages: {}, New: {}",
"Mailbox: {}, Messages: {}, New: {}{}",
account[&mailbox_hash].name(),
total,
unseen
unseen,
if account[&mailbox_hash].status.is_parsing() {
"(Loading...)"
} else {
""
}
)
}
MailboxStatus::Failed(_) | MailboxStatus::None => account[&mailbox_hash].status(),