From f8a47586e99c7f4fe83dd3acc5fa8d7d6a42bd20 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 2 Dec 2020 17:08:59 +0200 Subject: mail/listing: show mailbox loading state in status --- src/components/mail/listing.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs index dcca59a9..f8b0f13b 100644 --- a/src/components/mail/listing.rs +++ b/src/components/mail/listing.rs @@ -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(), -- cgit v1.2.3