Add instrument editor dialog

This commit is contained in:
Elias Projahn 2020-09-28 15:08:24 +02:00
parent 9fcab517e4
commit 1a6a6f7450
5 changed files with 152 additions and 3 deletions

View file

@ -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.");