Use one file picker filter
This commit is contained in:
parent
73ccc4054a
commit
7b590dde14
|
@ -93,8 +93,7 @@ impl GameWindow {
|
||||||
match command {
|
match command {
|
||||||
Command::OpenRom => {
|
Command::OpenRom => {
|
||||||
let rom = rfd::FileDialog::new()
|
let rom = rfd::FileDialog::new()
|
||||||
.add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
|
.add_filter("Virtual Boy ROMs", &["vb", "vbrom", "elf", "isx"])
|
||||||
.add_filter("Executable files", &["", "elf", "isx"])
|
|
||||||
.pick_file();
|
.pick_file();
|
||||||
if let Some(path) = rom {
|
if let Some(path) = rom {
|
||||||
self.client
|
self.client
|
||||||
|
@ -146,8 +145,7 @@ impl GameWindow {
|
||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
let rom = rfd::FileDialog::new()
|
let rom = rfd::FileDialog::new()
|
||||||
.add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
|
.add_filter("Virtual Boy ROMs", &["vb", "vbrom", "elf", "isx"])
|
||||||
.add_filter("Executable files", &["", "elf", "isx"])
|
|
||||||
.pick_file();
|
.pick_file();
|
||||||
if let Some(path) = rom {
|
if let Some(path) = rom {
|
||||||
self.client
|
self.client
|
||||||
|
|
Loading…
Reference in New Issue