Skip to content

Commit

Permalink
Don't consider any filename in file
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlcctrlv committed Mar 12, 2023
1 parent dab688e commit bcddc84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/editor/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Editor {
.unwrap_or(Oss::from("glif"))
.to_string_lossy()
.into_owned();
let tempglif: MFEKGlif<_> = match ext_or.as_str() {
let mut tempglif: MFEKGlif<_> = match ext_or.as_str() {
"glifjson" => {
serde_json::from_str(&fs::read_to_string(&file).expect("Could not open file"))
.expect("Could not deserialize JSON MFEKGlif")
Expand All @@ -86,6 +86,8 @@ impl Editor {
}
};

tempglif.filename = Some(file.as_ref().to_path_buf());

tempglif
};

Expand Down

0 comments on commit bcddc84

Please sign in to comment.