From dd5fa29e9a2845078da6dc2a9eed9272e63785e5 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 29 Apr 2025 18:49:19 -0600 Subject: [PATCH] Adjust permanently delete dialog --- i18n/en/cosmic_files.ftl | 10 +++++----- src/app.rs | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/i18n/en/cosmic_files.ftl b/i18n/en/cosmic_files.ftl index 3841ecb..0108d95 100644 --- a/i18n/en/cosmic_files.ftl +++ b/i18n/en/cosmic_files.ftl @@ -85,12 +85,12 @@ related-apps = Related applications ## Permanently delete Dialog selected-items = the {$items} selected items -permanently-delete-question = Permanently delete? +permanently-delete-question = Permanently delete delete = Delete -permanently-delete-warning = Permanently delete {$target}, {$nb_items -> - [one] he - *[other] they - } can not be restored +permanently-delete-warning = Do you want to permanently delete {$target}? {$nb_items -> + [one] It + *[other] They + } cannot be restored afterwards. ## Rename Dialog rename-file = Rename file diff --git a/src/app.rs b/src/app.rs index 3b33e5e..c36e3d0 100644 --- a/src/app.rs +++ b/src/app.rs @@ -33,7 +33,7 @@ use cosmic::{ widget::{ self, dnd_destination::DragId, - horizontal_space, icon, + horizontal_space, menu::{action::MenuAction, key_bind::KeyBind}, segmented_button::{self, Entity}, vertical_space, @@ -4685,7 +4685,7 @@ impl Application for App { DialogPage::PermanentlyDelete { paths } => { let target = if paths.len() == 1 { format!( - "« {} »", + "\"{}\"", paths[0] .file_name() .map(std::ffi::OsStr::to_string_lossy) @@ -4697,7 +4697,6 @@ impl Application for App { widget::dialog() .title(fl!("permanently-delete-question")) - .icon(icon::from_name("dialog-warning").size(32)) .primary_action( widget::button::destructive(fl!("delete")) .on_press(Message::DialogComplete),