mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-19 05:41:55 +00:00
Issue #232 Automatically add .swf to filename
This commit is contained in:
@@ -288,7 +288,11 @@ public class Main {
|
||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||
File file = Helper.fixDialogFile(fc.getSelectedFile());
|
||||
try {
|
||||
Main.saveFile(file.getAbsolutePath());
|
||||
String fileName = file.getAbsolutePath();
|
||||
if (!fileName.toLowerCase().endsWith(".swf")) {
|
||||
fileName += ".swf";
|
||||
}
|
||||
Main.saveFile(fileName);
|
||||
Configuration.setConfig("lastSaveDir", file.getParentFile().getAbsolutePath());
|
||||
maskURL = null;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user