Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use better fallback for empty rerun action (#32031)

Kirill Bulatov936ad0bf102f
diff --git a/crates/tasks_ui/src/tasks_ui.rs b/crates/tasks_ui/src/tasks_ui.rs
index 6955f770a90..27d9bfe892e 100644
--- a/crates/tasks_ui/src/tasks_ui.rs
+++ b/crates/tasks_ui/src/tasks_ui.rs
@@ -80,7 +80,14 @@ pub fn init(cx: &mut App) {
);
}
} else {
- toggle_modal(workspace, None, window, cx).detach();
+ spawn_task_or_modal(
+ workspace,
+ &Spawn::ViaModal {
+ reveal_target: None,
+ },
+ window,
+ cx,
+ );
};
});
},