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