listing: Update status on all update events
Envelope counter totals might remain stale in the bottom status bar.jmap-eventsource
parent
279c288a22
commit
03a1d5a985
|
@ -607,6 +607,11 @@ impl Component for Listing {
|
||||||
.map(|f| (f.depth, f.indentation, f.has_sibling, f.hash))
|
.map(|f| (f.depth, f.indentation, f.has_sibling, f.hash))
|
||||||
.collect::<_>();
|
.collect::<_>();
|
||||||
self.set_dirty(true);
|
self.set_dirty(true);
|
||||||
|
context
|
||||||
|
.replies
|
||||||
|
.push_back(UIEvent::StatusEvent(StatusEvent::UpdateStatus(
|
||||||
|
self.get_status(context),
|
||||||
|
)));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -637,6 +642,11 @@ impl Component for Listing {
|
||||||
));
|
));
|
||||||
self.component.refresh_mailbox(context, true);
|
self.component.refresh_mailbox(context, true);
|
||||||
}
|
}
|
||||||
|
context
|
||||||
|
.replies
|
||||||
|
.push_back(UIEvent::StatusEvent(StatusEvent::UpdateStatus(
|
||||||
|
self.get_status(context),
|
||||||
|
)));
|
||||||
self.set_dirty(true);
|
self.set_dirty(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1207,15 +1217,11 @@ impl Component for Listing {
|
||||||
.push_back(UIEvent::Action(Tab(New(Some(Box::new(composer))))));
|
.push_back(UIEvent::Action(Tab(New(Some(Box::new(composer))))));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
UIEvent::StartupCheck(_) => {
|
UIEvent::StartupCheck(_)
|
||||||
self.dirty = true;
|
| UIEvent::MailboxUpdate(_)
|
||||||
context
|
| UIEvent::EnvelopeUpdate(_)
|
||||||
.replies
|
| UIEvent::EnvelopeRename(_, _)
|
||||||
.push_back(UIEvent::StatusEvent(StatusEvent::UpdateStatus(
|
| UIEvent::EnvelopeRemove(_, _) => {
|
||||||
self.get_status(context),
|
|
||||||
)));
|
|
||||||
}
|
|
||||||
UIEvent::MailboxUpdate(_) => {
|
|
||||||
self.dirty = true;
|
self.dirty = true;
|
||||||
context
|
context
|
||||||
.replies
|
.replies
|
||||||
|
|
Loading…
Reference in New Issue