mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 13:51:58 +00:00
Refreshing Save buttons when files were modified outside application
This commit is contained in:
@@ -18,7 +18,9 @@ package com.jpexs.decompiler.flash.treeitems;
|
||||
|
||||
import com.jpexs.decompiler.flash.Bundle;
|
||||
import com.jpexs.decompiler.flash.OpenableSourceInfo;
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.SWFContainerItem;
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
@@ -184,4 +186,17 @@ public class OpenableList implements List<Openable>, SWFContainerItem {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setModified() {
|
||||
for (Openable openable : this) {
|
||||
if (openable instanceof SWF) {
|
||||
SWF swf = (SWF) openable;
|
||||
swf.setModified(true);
|
||||
}
|
||||
if (openable instanceof ABC) {
|
||||
ABC abc = (ABC) openable;
|
||||
abc.getSwf().setModified(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user