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()
|
FileDialog::new()
|
||||||
.set_title("Input image")
|
.set_title("Input image")
|
||||||
.set_directory(working_dir())
|
.set_directory(working_dir())
|
||||||
|
.add_filter(
|
||||||
|
"images",
|
||||||
|
&ImageFormat::all()
|
||||||
|
.map(ImageFormat::extensions_str)
|
||||||
|
.flatten()
|
||||||
|
.collect::<Vec<&'static &'static str>>(),
|
||||||
|
)
|
||||||
.pick_file()
|
.pick_file()
|
||||||
.context("no input image selected")?,
|
.context("no input image selected")?,
|
||||||
FileDialog::new()
|
FileDialog::new()
|
||||||
|
|
Loading…
Reference in a new issue