Skip to content

Commit

Permalink
fix rerunning last task not spawning task
Browse files Browse the repository at this point in the history
  • Loading branch information
cartercanedy committed Jan 21, 2025
1 parent 3fa8383 commit 167c2f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/tasks_ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn init(cx: &mut AppContext) {

let task_context = task_context(workspace, cx);

let _ = cx.spawn(|workspace, mut cx| async move {
cx.spawn(|workspace, mut cx| async move {
let task_context = task_context.await;
let Some(workspace) = workspace.upgrade() else {
return;
Expand Down Expand Up @@ -120,7 +120,8 @@ pub fn init(cx: &mut AppContext) {
);
})
.log_err();
});
})
.detach();
}
} else {
toggle_modal(workspace, None, cx).detach();
Expand Down

0 comments on commit 167c2f5

Please sign in to comment.