image filter
This commit is contained in:
parent
3315342aa5
commit
ba055093be
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ impl Files {
|
|||
FileDialog::new()
|
||||
.set_title("Input image")
|
||||
.set_directory(working_dir())
|
||||
.add_filter(
|
||||
"images",
|
||||
&ImageFormat::all()
|
||||
.map(ImageFormat::extensions_str)
|
||||
.flatten()
|
||||
.collect::<Vec<&'static &'static str>>(),
|
||||
)
|
||||
.pick_file()
|
||||
.context("no input image selected")?,
|
||||
FileDialog::new()
|
||||
|
|
Loading…
Reference in a new issue