summaryrefslogtreecommitdiffstats
path: root/ui/src/types.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-03-30 13:41:32 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-10 19:40:41 +0300
commit551db51b00872a6cf4261ff8a9dedacc62914454 (patch)
tree4d6320170cd4889cb25c494019f617037a234ace /ui/src/types.rs
parentd19bda89776346b72c8e5dd36880a94f58299cec (diff)
ui: avoid full renders when worker threads return StartupChecks
Now listings only re-render when their folder gets a StartupCheck event, account menu always re-renders to update new mail counts closes #76
Diffstat (limited to 'ui/src/types.rs')
-rw-r--r--ui/src/types.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/types.rs b/ui/src/types.rs
index 9e820bbd..bbbbf547 100644
--- a/ui/src/types.rs
+++ b/ui/src/types.rs
@@ -27,6 +27,7 @@ use super::execute::Action;
use super::terminal::*;
use melib::RefreshEvent;
+use melib::backends::FolderHash;
use std;
use std::fmt;
use std::thread;
@@ -83,7 +84,7 @@ pub enum UIEventType {
StatusEvent(StatusEvent),
MailboxUpdate((usize, usize)), // (account_idx, mailbox_idx)
EntityKill(Uuid),
- StartupCheck,
+ StartupCheck(FolderHash),
RefreshEvent(Box<RefreshEvent>),
}