Set title and accept button label for extract dialog
This commit is contained in:
parent
162768af8f
commit
dfa857b1e5
4 changed files with 6 additions and 6 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue