From 91b32a623bf70a734f1ccdee71da74afd79d4b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 14 Feb 2021 22:43:19 +0100 Subject: [PATCH] Setting isLast on BUTTONCONDACTION --- .../decompiler/flash/gui/tagtree/TagTreeContextMenu.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java index 4bf460211..4785a6dc7 100644 --- a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTreeContextMenu.java @@ -814,6 +814,10 @@ public class TagTreeContextMenu extends JPopupMenu { DefineButton2Tag button = addScriptDialog.getButton(); BUTTONCONDACTION bca = new BUTTONCONDACTION(swf, button); bca.condOverUpToOverDown = true; //press + if (!button.actions.isEmpty()) { + button.actions.get(button.actions.size() - 1).isLast = false; + } + bca.isLast = true; button.actions.add(bca); button.setModified(true);