mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 15:41:52 +00:00
show warning when trying to import scripts to AS3 file
This commit is contained in:
@@ -1960,9 +1960,13 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
String selFile = Helper.fixDialogFile(chooser.getSelectedFile()).getAbsolutePath();
|
||||
String scriptsFolder = Path.combine(selFile, ScriptExportSettings.EXPORT_FOLDER_NAME);
|
||||
|
||||
new ScriptImporter().importScripts(scriptsFolder, swf.getASMs(true));
|
||||
|
||||
reload(true);
|
||||
int count = new ScriptImporter().importScripts(scriptsFolder, swf.getASMs(true));
|
||||
if (count == 0 && swf.isAS3()) {
|
||||
View.showMessageDialog(this, translate("import.script.as12warning"));
|
||||
} else {
|
||||
View.showMessageDialog(this, translate("import.script.result").replace("%count%", Integer.toString(count)));
|
||||
reload(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user