mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-15 19:38:19 +00:00
#823 translatex buttons (FFDec freezes on large files when pressing these buttons) fixed
This commit is contained in:
@@ -1331,7 +1331,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
|
||||
if (findCount > 0) {
|
||||
swf.clearImageCache();
|
||||
refreshTree();
|
||||
repaintTree();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -2586,6 +2586,11 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
|
||||
}
|
||||
}
|
||||
|
||||
public void repaintTree() {
|
||||
tagTree.repaint();
|
||||
reload(true);
|
||||
}
|
||||
|
||||
public void showGenericTag(Tag tag) {
|
||||
|
||||
showCard(CARDPREVIEWPANEL);
|
||||
|
||||
@@ -1015,7 +1015,7 @@ public class PreviewPanel extends JSplitPane implements ActionListener {
|
||||
swf.clearImageCache();
|
||||
swf.updateCharacters();
|
||||
tag.getTimelined().getTimeline().reset();
|
||||
mainPanel.refreshTree();
|
||||
mainPanel.repaintTree();
|
||||
mainPanel.setTagTreeSelectedNode(tag);
|
||||
editButton.setVisible(true);
|
||||
saveButton.setVisible(false);
|
||||
|
||||
@@ -237,7 +237,7 @@ public class TextPanel extends JPanel {
|
||||
modified = false;
|
||||
textTag.getSwf().clearImageCache();
|
||||
if (refresh) {
|
||||
mainPanel.refreshTree();
|
||||
mainPanel.repaintTree();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -246,7 +246,7 @@ public class TextPanel extends JPanel {
|
||||
if (mainPanel.alignText(textTag, textAlign)) {
|
||||
updateButtonsVisibility();
|
||||
textTag.getSwf().clearImageCache();
|
||||
mainPanel.refreshTree();
|
||||
mainPanel.repaintTree();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ public class TextPanel extends JPanel {
|
||||
if (mainPanel.translateText(textTag, delta * (repeatCount + 1))) {
|
||||
updateButtonsVisibility();
|
||||
textTag.getSwf().clearImageCache();
|
||||
mainPanel.refreshTree();
|
||||
mainPanel.repaintTree();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ public class TextPanel extends JPanel {
|
||||
}
|
||||
|
||||
textTag.getSwf().clearImageCache();
|
||||
mainPanel.refreshTree();
|
||||
mainPanel.repaintTree();
|
||||
}
|
||||
|
||||
private void textChanged() {
|
||||
|
||||
@@ -540,7 +540,7 @@ public class TagTreeContextMenu extends JPopupMenu implements ActionListener {
|
||||
}
|
||||
}
|
||||
|
||||
mainPanel.refreshTree();
|
||||
mainPanel.repaintTree();
|
||||
break;
|
||||
}
|
||||
case ACTION_CLOSE_SWF: {
|
||||
|
||||
Reference in New Issue
Block a user