mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Fix borrow issue in track set editor
This commit is contained in:
parent
4a8429c6e3
commit
eed133e73d
1 changed files with 2 additions and 2 deletions
|
|
@ -154,8 +154,8 @@ impl Screen<Rc<Box<dyn Source>>, TrackSetData> for TrackSetEditor {
|
||||||
let recording = this.recording.borrow().clone();
|
let recording = this.recording.borrow().clone();
|
||||||
if let Some(recording) = recording {
|
if let Some(recording) = recording {
|
||||||
spawn!(@clone this, async move {
|
spawn!(@clone this, async move {
|
||||||
let track = &this.tracks.borrow()[index];
|
let work_parts = this.tracks.borrow()[index].work_parts.clone();
|
||||||
if let Some(selection) = push!(this.handle, TrackEditor, (recording, track.work_parts.clone())).await {
|
if let Some(selection) = push!(this.handle, TrackEditor, (recording, work_parts)).await {
|
||||||
{
|
{
|
||||||
let mut tracks = this.tracks.borrow_mut();
|
let mut tracks = this.tracks.borrow_mut();
|
||||||
let mut track = &mut tracks[index];
|
let mut track = &mut tracks[index];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue