remember view stacks separately for screens
Previously, the stack would be reset when switching between screens. With the new search flow this means that search results are lost, e.g. when switching from search results to the queue and back.
This commit is contained in:
@@ -264,9 +264,9 @@ fn main() {
|
||||
);
|
||||
|
||||
let mut layout = ui::layout::Layout::new(status, &event_manager, theme)
|
||||
.screen("search", search.with_name("search"), "Search")
|
||||
.screen("library", libraryview.with_name("library"), "Library")
|
||||
.screen("queue", queueview, "Queue");
|
||||
.screen("search", search.with_name("search"))
|
||||
.screen("library", libraryview.with_name("library"))
|
||||
.screen("queue", queueview);
|
||||
|
||||
// initial screen is library
|
||||
layout.set_screen("library");
|
||||
|
||||
Reference in New Issue
Block a user