Ensure that on_release callbacks are called even if view outlives its window

This commit is contained in:
Max Brunsfeld
2023-12-20 16:01:52 -08:00
parent e1a4e8ea16
commit 5e7c74c7b6
5 changed files with 27 additions and 19 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ pub async fn handle_cli_connection(
let (done_tx, done_rx) = oneshot::channel();
let _subscription =
workspace.update(&mut cx, |workspace, cx| {
cx.on_release(move |_, _| {
cx.on_release(move |_, _, _| {
let _ = done_tx.send(());
})
});