From 7b590dde14bb739764be351ed46a1df2e18899df Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Sat, 6 Sep 2025 22:25:40 -0400 Subject: [PATCH] Use one file picker filter --- src/window/game.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/window/game.rs b/src/window/game.rs index 0addf83..8415846 100644 --- a/src/window/game.rs +++ b/src/window/game.rs @@ -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