mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 19:46:48 +00:00
Fixed File did not appear modified when only header was modified
Width and Height in new File dialog instead of rect. Unit selection.
This commit is contained in:
@@ -364,6 +364,8 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
private Map<String, ASMSource> asmsCache;
|
||||
|
||||
private Set<Integer> cyclicCharacters = null;
|
||||
|
||||
private boolean headerModified = false;
|
||||
|
||||
private static final DecompilerPool decompilerPool = new DecompilerPool();
|
||||
|
||||
@@ -383,6 +385,14 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
*/
|
||||
public static final Color ERROR_COLOR = Color.red;
|
||||
|
||||
public void setHeaderModified(boolean headerModified) {
|
||||
this.headerModified = headerModified;
|
||||
}
|
||||
|
||||
public boolean isHeaderModified() {
|
||||
return headerModified;
|
||||
}
|
||||
|
||||
public void updateCharacters() {
|
||||
characters = null;
|
||||
characterIdTags = null;
|
||||
@@ -1132,10 +1142,14 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModified() {
|
||||
public boolean isModified() {
|
||||
if (isModified) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (headerModified) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (Tag tag : getTags()) {
|
||||
if (tag.isModified()) {
|
||||
|
||||
Reference in New Issue
Block a user