Added Copy/move tag to for SWFs inside bundles and/or DefineBinaryData

Fixed reloading SWF inside DefineBinaryData
This commit is contained in:
Jindra Petřík
2022-11-01 06:03:27 +01:00
parent 06914c4697
commit c4b7973460
4 changed files with 134 additions and 103 deletions

View File

@@ -551,7 +551,13 @@ public abstract class MainFrameMenu implements MenuBuilder {
protected boolean reloadActionPerformed(ActionEvent evt) {
if (swf != null) {
if (!Configuration.showCloseConfirmation.get() || ViewMessages.showConfirmDialog(Main.getDefaultMessagesComponent(), translate("message.confirm.reload"), translate("message.warning"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION) {
Main.reloadFile(swf.swfList);
if (swf.swfList == null) {
if (swf.binaryData != null) {
mainFrame.getPanel().loadFromBinaryTag(swf.binaryData);
}
} else {
Main.reloadFile(swf.swfList);
}
}
}
return true;