mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 21:46:28 +00:00
This commit is contained in:
@@ -1268,6 +1268,7 @@ public class Main {
|
||||
result.sourceInfo = sourceInfo;
|
||||
|
||||
boolean hasVideoStreams = false;
|
||||
boolean hasEncrypted = false;
|
||||
for (Openable openable : result) {
|
||||
|
||||
openable.setOpenableList(result);
|
||||
@@ -1289,6 +1290,10 @@ public class Main {
|
||||
}
|
||||
}
|
||||
|
||||
if (swf.encrypted) {
|
||||
hasEncrypted = true;
|
||||
}
|
||||
|
||||
swf.addEventListener(new EventListener() {
|
||||
@Override
|
||||
public void handleExportingEvent(String type, int index, int count, Object data) {
|
||||
@@ -1344,6 +1349,16 @@ public class Main {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
if (hasEncrypted) {
|
||||
View.execInEventDispatchLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
ViewMessages.showMessageDialog(getDefaultMessagesComponent(), AppStrings.translate("warning.cannotencrypt").replace("%file%", sourceInfo.getFileTitleOrName()), AppStrings.translate("message.warning"), JOptionPane.WARNING_MESSAGE, Configuration.warningCannotEncrypt);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user