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
@@ -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.",
@@ -719,10 +719,6 @@ pub enum PromptLevel {
/// A prompt that is shown when a critical problem has occurred
Critical,
-- /// A prompt that is shown when asking the user to confirm a potentially destructive action- /// (overwriting a file for example)- Destructive,
}
/// The style of the cursor (pointer)