Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
fixed saving bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
TerriblePanda committed Dec 15, 2019
1 parent de21968 commit 3035bf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/me/grax/jbytemod/ui/MyMenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@ protected void openSaveDialogue() {
int result = jfc.showSaveDialog(this);
if (result == JFileChooser.APPROVE_OPTION) {
File output = jfc.getSelectedFile();
if(!output.getAbsolutePath().endsWith(".jar")) {
output = new File(output.getAbsolutePath() + ".jar");
}
this.lastFile = output;
JByteMod.LOGGER.log("Selected output file: " + output.getAbsolutePath());
jbm.saveFile(output);
Expand Down

0 comments on commit 3035bf5

Please sign in to comment.