summaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-08-17 15:31:30 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-08-26 00:54:05 +0300
commit8a6bf3b2173145e0c86ecf37fd6e044fa2fbf809 (patch)
tree4b4360ed446b3d3cc913c9f5c506a003dbd3db64 /src/command
parentdede8d2a9e58d57968df558ffda1d6fc1a67db09 (diff)
Preserve Account order from configuration file
Use IndexMap to preserve the order of accounts in the UI from the account definitions.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/actions.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/actions.rs b/src/command/actions.rs
index 13d128a9..7e9dde58 100644
--- a/src/command/actions.rs
+++ b/src/command/actions.rs
@@ -24,7 +24,7 @@
*/
use crate::components::Component;
-use melib::backends::MailboxHash;
+use melib::backends::{AccountHash, MailboxHash};
pub use melib::thread::{SortField, SortOrder};
use melib::{Draft, EnvelopeHash};
@@ -59,10 +59,10 @@ pub enum ListingAction {
#[derive(Debug)]
pub enum TabAction {
New(Option<Box<dyn Component>>),
- NewDraft(usize, Option<Draft>),
- Reply((usize, MailboxHash), EnvelopeHash), // thread coordinates (account, mailbox) and envelope
+ NewDraft(AccountHash, Option<Draft>),
+ Reply((AccountHash, MailboxHash), EnvelopeHash), // thread coordinates (account, mailbox) and envelope
Close,
- Edit(usize, EnvelopeHash), // account_position, envelope hash
+ Edit(AccountHash, EnvelopeHash), // account_position, envelope hash
Kill(Uuid),
}