Skip to content

Commit ab74419

Browse files
committed
gui: Fix using "path" instead of path when opening a file
1 parent ca1e553 commit ab74419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eurochef/gui/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ impl eframe::App for EurochefApp {
221221
#[cfg(not(target_arch = "wasm32"))]
222222
std::thread::spawn(move || {
223223
if let Some(path) = rfd::FileDialog::new()
224-
.add_filter("Eurocom DB", &["edb"])
224+
.add_filter("EngineX Database", &["edb"])
225225
.pick_file()
226226
{
227-
let mut f = File::open("path").unwrap();
227+
let mut f = File::open(&path).unwrap();
228228
let mut data = vec![];
229229
f.read_to_end(&mut data).unwrap();
230230

0 commit comments

Comments
 (0)