Adjust permanently delete dialog

This commit is contained in:
Jeremy Soller 2025-04-29 18:49:19 -06:00
parent 4f7d13f391
commit dd5fa29e9a
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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),