mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Notify frontend when deleting recordings and works
This commit is contained in:
parent
37f21c582d
commit
46ff9bdad1
2 changed files with 3 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ impl RecordingScreen {
|
|||
let clone = result.clone();
|
||||
context.spawn_local(async move {
|
||||
clone.backend.db().delete_recording(&clone.recording.id).await.unwrap();
|
||||
clone.backend.library_changed();
|
||||
});
|
||||
}));
|
||||
|
||||
|
|
@ -131,6 +132,7 @@ impl RecordingScreen {
|
|||
let clone = result.clone();
|
||||
context.spawn_local(async move {
|
||||
clone.backend.db().delete_tracks(&clone.recording.id).await.unwrap();
|
||||
clone.backend.library_changed();
|
||||
});
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ impl WorkScreen {
|
|||
let clone = result.clone();
|
||||
context.spawn_local(async move {
|
||||
clone.backend.db().delete_work(&clone.work.id).await.unwrap();
|
||||
clone.backend.library_changed();
|
||||
});
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue