diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-04-29 01:48:50 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:45 +0300 |
commit | 69031e66f90c107aff36dd590e7ef2bc19823b21 (patch) | |
tree | fec97aeeeae7d17e7ec00109b9dacd928b21d0b1 /src | |
parent | de8b733d92bf123beed9ddcf5149c6a587409fee (diff) |
ui: move account menu functions to Listing
AccountMenu was completely semantically attached to Listing, so there's
no reason for them to be separate and communicating via events.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -62,11 +62,8 @@ fn main() { let worker_receiver = state.worker_receiver(); /* Register some reasonably useful interfaces */ - let menu = Box::new(AccountMenu::new(&state.context.accounts)); - let listing = listing::Listing::from(IndexStyle::Compact); - let b = Box::new(listing); let window = Box::new(Tabbed::new(vec![ - Box::new(VSplit::new(menu, b, 90, false)), + Box::new(listing::Listing::new(&state.context.accounts)), Box::new(AccountsPanel::new(&state.context)), Box::new(ContactList::default()), ])); |