summaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-05-10 22:05:04 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-05-10 22:10:17 +0300
commit8648b229add56497f20c12098ee5819a3773d21c (patch)
tree06a2178f146cda07435d3c061ec35ad42b8bd5fc /src/types.rs
parenteb701695f71d6e62f5f11b85d3b367494a23c48b (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.rs4
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),