diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-03-30 13:41:32 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:41 +0300 |
commit | 551db51b00872a6cf4261ff8a9dedacc62914454 (patch) | |
tree | 4d6320170cd4889cb25c494019f617037a234ace /ui/src/types.rs | |
parent | d19bda89776346b72c8e5dd36880a94f58299cec (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.rs | 3 |
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>), } |