summaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-02-08 23:42:31 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-02-08 23:56:08 +0200
commit647cb10b33b5dabc3cb5f5ee2d74205600f64fcc (patch)
tree0be4abd2906af07ba3bc9c73a53cf3c79c18cf38 /src/types.rs
parent42747ef590efc1a23ea0d6db90dab5d9babdb4ea (diff)
ui: Use FolderHash instead of usize for folder cursor
Use FolderHash directly as a cursor type for folders within an account isntead of having a usize (being the order of the folder within the account) and figuring out the folder_hash everytime it's needed. Add OfflineListing for offline accounts and AccountStatusChange event.
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
index bbae7d07..0d9bd372 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -113,6 +113,7 @@ pub enum UIEvent {
MailboxUpdate((usize, FolderHash)), // (account_idx, mailbox_idx)
MailboxDelete((usize, FolderHash)),
MailboxCreate((usize, FolderHash)),
+ AccountStatusChange(usize),
ComponentKill(Uuid),
WorkerProgress(FolderHash),
StartupCheck(FolderHash),