mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
New search page
This commit is contained in:
parent
a6e0935df8
commit
cff489f43e
12 changed files with 830 additions and 793 deletions
|
|
@ -4,9 +4,15 @@ use adw::subclass::prelude::*;
|
|||
use gtk::{gio, glib, glib::clone, prelude::*};
|
||||
|
||||
use crate::{
|
||||
config, editor::tracks::TracksEditor, home_page::HomePage, library::Library,
|
||||
library_manager::LibraryManager, player::Player, player_bar::PlayerBar,
|
||||
playlist_page::PlaylistPage, welcome_page::WelcomePage,
|
||||
config,
|
||||
editor::tracks::TracksEditor,
|
||||
library::{Library, LibraryQuery},
|
||||
library_manager::LibraryManager,
|
||||
player::Player,
|
||||
player_bar::PlayerBar,
|
||||
playlist_page::PlaylistPage,
|
||||
search_page::SearchPage,
|
||||
welcome_page::WelcomePage,
|
||||
};
|
||||
|
||||
mod imp {
|
||||
|
|
@ -189,7 +195,13 @@ impl Window {
|
|||
self.imp().player.set_library(&library);
|
||||
|
||||
let navigation = self.imp().navigation_view.get();
|
||||
navigation.replace(&[HomePage::new(&navigation, &library, &self.imp().player).into()]);
|
||||
navigation.replace(&[SearchPage::new(
|
||||
&navigation,
|
||||
&library,
|
||||
&self.imp().player,
|
||||
LibraryQuery::default(),
|
||||
)
|
||||
.into()]);
|
||||
|
||||
self.imp().library.replace(Some(library));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue