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.

remoting: Adjust prompt level for dev server prompts (#11440)

Bennet Bo Fenner237cc9b4a934
diff --git a/crates/recent_projects/src/dev_servers.rs b/crates/recent_projects/src/dev_servers.rs
index f432235a5b6..d2519b434e5 100644
--- a/crates/recent_projects/src/dev_servers.rs
+++ b/crates/recent_projects/src/dev_servers.rs
@@ -328,7 +328,7 @@ impl DevServerProjects {
fn delete_dev_server(&mut self, id: DevServerId, cx: &mut ViewContext<Self>) {
let answer = cx.prompt(
- gpui::PromptLevel::Destructive,
+ gpui::PromptLevel::Warning,
"Are you sure?",
Some("This will delete the dev server and all of its remote projects."),
&["Delete", "Cancel"],
@@ -375,7 +375,7 @@ impl DevServerProjects {
cx: &mut ViewContext<Self>,
) {
let answer = cx.prompt(
- gpui::PromptLevel::Destructive,
+ gpui::PromptLevel::Warning,
format!("Delete \"{}\"?", path).as_str(),
Some("This will delete the remote project. You can always re-add it later."),
&["Delete", "Cancel"],