listing/plain: add missing EnvelopeRemove event handler
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Successful in 11m53s
Details
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Successful in 11m53s
Details
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>pull/315/head
parent
6506fffb94
commit
0500e451da
|
@ -1537,6 +1537,12 @@ impl Component for PlainListing {
|
|||
|
||||
self.set_dirty(true);
|
||||
}
|
||||
UIEvent::EnvelopeRemove(ref env_hash, _) => {
|
||||
if self.rows.contains_env(*env_hash) {
|
||||
self.refresh_mailbox(context, false);
|
||||
self.set_dirty(true);
|
||||
}
|
||||
}
|
||||
UIEvent::EnvelopeUpdate(ref env_hash) => {
|
||||
let account = &context.accounts[&self.cursor_pos.0];
|
||||
if !account.collection.contains_key(env_hash)
|
||||
|
|
Loading…
Reference in New Issue