summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-04-29 01:48:50 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-10 19:40:45 +0300
commit69031e66f90c107aff36dd590e7ef2bc19823b21 (patch)
treefec97aeeeae7d17e7ec00109b9dacd928b21d0b1 /src
parentde8b733d92bf123beed9ddcf5149c6a587409fee (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.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bin.rs b/src/bin.rs
index 9c241c98..c1f7fe11 100644
--- a/src/bin.rs
+++ b/src/bin.rs
@@ -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()),
]));