Fixed: #1678 Removing AS3 class does not correctly clear cache

This commit is contained in:
Jindra Petřík
2021-04-05 16:38:07 +02:00
parent bf387eba06
commit 1690fce8fa
4 changed files with 130 additions and 117 deletions

View File

@@ -1581,6 +1581,10 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
public void run() {
((Tag) abc.parentTag).getSwf().clearScriptCache();
fTraits.traits.remove(fTraitIndex);
if (fTraits.traits.isEmpty()) {
abc.script_info.get(decompiledTextArea.getScriptLeaf().scriptIndex).delete(abc, true);
abc.pack();
}
((Tag) abc.parentTag).setModified(true);
}
});