mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add instrument editor dialog
This commit is contained in:
parent
9fcab517e4
commit
1a6a6f7450
5 changed files with 152 additions and 3 deletions
|
|
@ -34,9 +34,15 @@ impl Window {
|
|||
})
|
||||
);
|
||||
|
||||
action!(result.window, "add-instrument", |_, _| {
|
||||
println!("TODO: Add instrument.");
|
||||
});
|
||||
action!(
|
||||
result.window,
|
||||
"add-instrument",
|
||||
clone!(@strong result => move |_, _| {
|
||||
InstrumentEditor::new(result.db.clone(), &result.window, None, |instrument| {
|
||||
println!("{:?}", instrument);
|
||||
}).show();
|
||||
})
|
||||
);
|
||||
|
||||
action!(result.window, "add-work", |_, _| {
|
||||
println!("TODO: Add work.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue