Remove 'Destructive' prompts (#11631)

While these would match how macOS handles this scenario, they crash on
Catalina, and require mouse clicks to interact.

cc @bennetbo



Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-09 18:52:09 -06:00 committed by GitHub
parent 901cb8b3d2
commit 0c2d71f1ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 14 deletions

View file

@ -334,7 +334,7 @@ impl PickerDelegate for NewPathDelegate {
if exists {
self.should_dismiss = false;
let answer = cx.prompt(
gpui::PromptLevel::Destructive,
gpui::PromptLevel::Critical,
&format!("{} already exists. Do you want to replace it?", m.relative_path()),
Some(
"A file or folder with the same name already eixsts. Replacing it will overwrite its current contents.",