push help view to stack instead of making it a separate screen
fixes #157
This commit is contained in:
@@ -222,16 +222,13 @@ fn main() {
|
||||
|
||||
let queueview = ui::queue::QueueView::new(queue.clone(), library.clone());
|
||||
|
||||
let helpview = ui::help::HelpView::new(cmd_manager.keybindings().clone());
|
||||
|
||||
let status =
|
||||
ui::statusbar::StatusBar::new(queue.clone(), library, cfg.use_nerdfont.unwrap_or(false));
|
||||
|
||||
let mut layout = ui::layout::Layout::new(status, &event_manager, theme)
|
||||
.view("search", search.with_name("search"), "Search")
|
||||
.view("library", libraryview.with_name("library"), "Library")
|
||||
.view("queue", queueview, "Queue")
|
||||
.view("help", helpview, "Help");
|
||||
.view("queue", queueview, "Queue");
|
||||
|
||||
// initial view is library
|
||||
layout.set_view("library");
|
||||
|
||||
Reference in New Issue
Block a user