Add extension .abc on ABC saving

This commit is contained in:
Jindra Petřík
2022-11-20 22:12:19 +01:00
parent a43fadb8cf
commit f7ec47c024
@@ -1823,6 +1823,12 @@ public class Main {
}
((SWF)openable).gfx = true;
}
if (selFilter == abcFilter) {
if (!fileName.toLowerCase(Locale.ENGLISH).endsWith(".abc")) {
fileName += ".abc";
}
}
Main.saveFile(openable, fileName, mode, exeExportMode);
Configuration.lastSaveDir.set(file.getParentFile().getAbsolutePath());
return true;