diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java index f152b1a9..335bd4b0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -179,7 +179,7 @@ public class MiscUtils public static File autoAppendFileExtension(String extension, File file) { if (!file.getName().endsWith(extension)) - file = new File(file.getName() + extension); + file = new File(file.getAbsolutePath() + extension); return file; }