From 8907d111e3508ef18c7d54b4361ad5ac67e3a5f9 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> Date: Wed, 1 May 2024 18:07:19 +0200 Subject: [PATCH] project panel: Adjust formatting of trash/delete action (#11252) This PR removes a confusing quotation mark when trashing/deleting a file, introduced in #10875. Also makes it clear that the file is actually going into trash instead of being deleted permanently Before (trash): image After (trash): image Before (delete): image After (delete): image Release Notes: - Fixed formatting of prompt action when trashing/deleting a file --- crates/project_panel/src/project_panel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index dd9750759e..bb7bfa19ec 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -905,9 +905,9 @@ impl ProjectPanel { let answer = (!skip_prompt).then(|| { cx.prompt( PromptLevel::Destructive, - &format!("{operation:?} {file_name:?}?",), + &format!("{operation} {file_name:?}?",), None, - &["Delete", "Cancel"], + &[operation, "Cancel"], ) });