mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add methods to update and delete tracks
This commit is contained in:
parent
e95129a44f
commit
c12d8b01bd
4 changed files with 37 additions and 11 deletions
|
|
@ -74,7 +74,7 @@ impl Window {
|
|||
}));
|
||||
|
||||
add_button.connect_clicked(clone!(@strong result => move |_| {
|
||||
TracksEditor::new(result.backend.clone(), &result.window, clone!(@strong result => move || {
|
||||
TracksEditor::new(result.backend.clone(), &result.window, None, Vec::new(), clone!(@strong result => move || {
|
||||
result.reload();
|
||||
})).show();
|
||||
}));
|
||||
|
|
@ -141,7 +141,7 @@ impl Window {
|
|||
result.window,
|
||||
"add-tracks",
|
||||
clone!(@strong result => move |_, _| {
|
||||
TracksEditor::new(result.backend.clone(), &result.window, clone!(@strong result => move || {
|
||||
TracksEditor::new(result.backend.clone(), &result.window, None, Vec::new(), clone!(@strong result => move || {
|
||||
result.reload();
|
||||
})).show();
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue