Skip to content

Commit

Permalink
add extension to save as smh
Browse files Browse the repository at this point in the history
  • Loading branch information
bananaturtlesandwich committed Jul 8, 2023
1 parent 5efa21b commit b6ad381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["spuds"]
repository = "https://github.com/bananaturtlesandwich/stove"
description = "an editor for cooked unreal engine 4 map files"
readme = "README.md"
version = "0.7.1"
version = "0.7.2"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ impl EventHandler for Stove {
self.save_dialog.show(ctx);
if self.save_dialog.selected() {
if let Some(path) = self.save_dialog.path() {
self.filepath = path.to_str().unwrap_or_default().to_string();
self.filepath = path.with_extension("umap").to_str().unwrap_or_default().to_string();
self.save()
}
}
Expand Down

0 comments on commit b6ad381

Please sign in to comment.