mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add tracks editor
This commit is contained in:
parent
6ddee1d187
commit
b8911eafaa
11 changed files with 754 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ impl Window {
|
|||
get_widget!(builder, gtk::Box, sidebar_box);
|
||||
get_widget!(builder, gtk::Box, empty_screen);
|
||||
|
||||
let backend = Rc::new(Backend::new("test.sqlite"));
|
||||
let backend = Rc::new(Backend::new("test.sqlite", std::env::current_dir().unwrap()));
|
||||
let poe_list = PoeList::new(backend.clone());
|
||||
let navigator = Navigator::new(&empty_screen);
|
||||
|
||||
|
|
@ -110,6 +110,16 @@ impl Window {
|
|||
})
|
||||
);
|
||||
|
||||
action!(
|
||||
result.window,
|
||||
"add-tracks",
|
||||
clone!(@strong result => move |_, _| {
|
||||
TracksEditor::new(result.backend.clone(), &result.window, clone!(@strong result => move || {
|
||||
result.reload();
|
||||
})).show();
|
||||
})
|
||||
);
|
||||
|
||||
action!(
|
||||
result.window,
|
||||
"edit-person",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue