mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Fix borrowing error in work editor
This commit is contained in:
parent
cec955eb9f
commit
863c9d19c3
1 changed files with 2 additions and 1 deletions
|
|
@ -205,7 +205,8 @@ impl Screen<Option<Work>, Work> for WorkEditor {
|
|||
|
||||
edit_button.connect_clicked(clone!(@weak this => move |_| {
|
||||
spawn!(@clone this, async move {
|
||||
match this.structure.borrow()[index].clone() {
|
||||
let part_or_section = this.structure.borrow()[index].clone();
|
||||
match part_or_section {
|
||||
PartOrSection::Part(part) => {
|
||||
if let Some(part) = push!(this.handle, WorkPartEditor, Some(part)).await {
|
||||
let length = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue