Use one file picker filter

This commit is contained in:
Simon Gellis 2025-09-06 22:25:40 -04:00
parent 73ccc4054a
commit 7b590dde14
1 changed files with 2 additions and 4 deletions

View File

@ -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