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