diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-10 22:05:04 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-10 22:10:17 +0300 |
commit | 8648b229add56497f20c12098ee5819a3773d21c (patch) | |
tree | 06a2178f146cda07435d3c061ec35ad42b8bd5fc /src/types.rs | |
parent | eb701695f71d6e62f5f11b85d3b367494a23c48b (diff) |
Add AccountHash to RefreshEvent
Different accounts might have same inboxes with same MailboxHashes. Use
the hash of the account's name to differentiate.
Diffstat (limited to 'src/types.rs')
-rw-r--r-- | src/types.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.rs b/src/types.rs index 4c7b8db7..deab6c3f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -38,7 +38,7 @@ pub use self::helpers::*; use super::execute::Action; use super::terminal::*; -use melib::backends::MailboxHash; +use melib::backends::{AccountHash, MailboxHash}; use melib::{EnvelopeHash, RefreshEvent}; use nix::unistd::Pid; use std; @@ -115,7 +115,7 @@ pub enum UIEvent { MailboxCreate((usize, MailboxHash)), AccountStatusChange(usize), ComponentKill(Uuid), - WorkerProgress(MailboxHash), + WorkerProgress(AccountHash, MailboxHash), StartupCheck(MailboxHash), RefreshEvent(Box<RefreshEvent>), EnvelopeUpdate(EnvelopeHash), |