Set title and accept button label for extract dialog

This commit is contained in:
Jason Rodney Hansen 2025-03-23 15:28:18 -06:00
parent 162768af8f
commit dfa857b1e5
4 changed files with 6 additions and 6 deletions

View file

@ -43,7 +43,7 @@ create-archive = Create archive
## Extract Dialog
extract-password-required = Password required
extract-to = Extract To...
extract-to-prompt = Input a location to extract the archive to.
extract-to-title = Extract to folder
## Empty Trash Dialog
empty-trash = Empty trash

View file

@ -43,7 +43,6 @@ create-archive = Tömörített fájl létrehozása
## Extract Dialog
extract-password-required = Jelszó szükséges
extract-to = Kibontás ide...
extract-to-prompt = Adja meg a helyet, ahová ki szeretné bontani a tömörített fájlt.
## Empty Trash Dialog
empty-trash = Kuka ürítése
@ -321,4 +320,4 @@ sort-z-a = Z-A
sort-newest-first = Legújabb előre
sort-oldest-first = Legrégibb előre
sort-smallest-to-largest = Legkisebbtől a legnagyobbig
sort-largest-to-smallest = Legnagyobbtól a legkisebbig
sort-largest-to-smallest = Legnagyobbtól a legkisebbig

View file

@ -43,7 +43,6 @@ create-archive = Maak een archiefbestand
## Extract Dialog
extract-password-required = Wachtwoord vereist
extract-to = Uitpakken naar...
extract-to-prompt = Voer een locatie in om dit archief naar uit te pakken.
## Empty Trash Dialog
empty-trash = Prullenbak legen?

View file

@ -2395,16 +2395,18 @@ impl Application for App {
.and_then(|first| first.parent())
.map(|parent| parent.to_path_buf())
{
let (dialog, command) = Dialog::new(
let (mut dialog, dialog_task) = Dialog::new(
DialogKind::OpenFolder,
Some(destination),
Message::FileDialogMessage,
Message::ExtractToResult,
);
let set_title_task = dialog.set_title(fl!("extract-to-title"));
dialog.set_accept_label(fl!("extract-here"));
self.windows
.insert(dialog.window_id(), WindowKind::FileDialog(Some(paths)));
self.file_dialog_opt = Some(dialog);
return command;
return Task::batch([set_title_task, dialog_task]);
};
}
Message::ExtractToResult(result) => {