#811 Export ActionScript fail fixed

Creating buttons simplified (common code lines moved to function)
This commit is contained in:
honfika@gmail.com
2015-02-21 19:14:01 +01:00
parent 6902b4d716
commit e5f233c32c
7 changed files with 54 additions and 72 deletions

View File

@@ -641,7 +641,7 @@ public class Main {
return AppStrings.translate("filter.swf");
}
};
FileFilter exeFilter = new FileFilter() {
@Override
public boolean accept(File f) {
@@ -653,7 +653,7 @@ public class Main {
return AppStrings.translate("filter.exe");
}
};
if(mode == SaveFileMode.EXE){
if (mode == SaveFileMode.EXE) {
fc.setFileFilter(exeFilter);
} else if (!swf.gfx) {
fc.setFileFilter(swfFilter);