mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add original database code
This commit is contained in:
parent
08be3cb613
commit
7eacfe21f4
26 changed files with 2059 additions and 24 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
home_page::MusicusHomePage, player::MusicusPlayer, playlist_page::MusicusPlaylistPage,
|
||||
welcome_page::MusicusWelcomePage,
|
||||
home_page::MusicusHomePage, library::MusicusLibrary, player::MusicusPlayer,
|
||||
playlist_page::MusicusPlaylistPage, welcome_page::MusicusWelcomePage,
|
||||
};
|
||||
|
||||
use adw::subclass::prelude::*;
|
||||
|
|
@ -125,11 +125,11 @@ impl MusicusWindow {
|
|||
|
||||
#[template_callback]
|
||||
fn set_library_folder(&self, folder: &gio::File) {
|
||||
let path = folder.path();
|
||||
log::info!("{path:?}");
|
||||
let path = folder.path().unwrap();
|
||||
let library = MusicusLibrary::new(path);
|
||||
self.imp()
|
||||
.navigation_view
|
||||
.replace(&[MusicusHomePage::new(&self.imp().player).into()]);
|
||||
.replace(&[MusicusHomePage::new(&library, &self.imp().player).into()]);
|
||||
}
|
||||
|
||||
#[template_callback]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue