mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Fix borrowing bug in recording editor
This commit is contained in:
parent
a0d1832122
commit
9a4ba8dd12
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,8 @@ impl Screen<Option<Recording>, Recording> for RecordingEditor {
|
|||
|
||||
edit_button.connect_clicked(clone!(@weak this => move |_| {
|
||||
spawn!(@clone this, async move {
|
||||
let performance = &this.performances.borrow()[index];
|
||||
if let Some(performance) = push!(this.handle, PerformanceEditor, Some(performance.to_owned())).await {
|
||||
let performance = this.performances.borrow()[index].clone();
|
||||
if let Some(performance) = push!(this.handle, PerformanceEditor, Some(performance)).await {
|
||||
let length = {
|
||||
let mut performances = this.performances.borrow_mut();
|
||||
performances[index] = performance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue