Minor rearrangement
This commit is contained in:
parent
66681a7ea9
commit
706e30f587
@ -85,12 +85,15 @@ fn with<Database: IDatabase + 'static, Library: ILibrary + 'static>(
|
||||
let musicbrainz = MusicBrainz::new(client);
|
||||
|
||||
let channel = EventChannel::new();
|
||||
let listener = EventListener::new(channel.sender());
|
||||
let listener_sender = channel.sender();
|
||||
let app_sender = channel.sender();
|
||||
|
||||
let app = App::new(music_hoard, musicbrainz, channel.sender());
|
||||
let listener = EventListener::new(listener_sender);
|
||||
let handler = EventHandler::new(channel.receiver());
|
||||
|
||||
let app = App::new(music_hoard, musicbrainz, app_sender);
|
||||
let ui = Ui;
|
||||
|
||||
let handler = EventHandler::new(channel.receiver());
|
||||
|
||||
// Run the TUI application.
|
||||
Tui::run(terminal, app, ui, handler, listener).expect("failed to run tui");
|
||||
|
Loading…
Reference in New Issue
Block a user