mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 20:10:50 +00:00
goto last method after saving p-code when outside trait method
Fixed: AS3 p-code/AS hilighting after p-code save
This commit is contained in:
@@ -313,7 +313,11 @@ public class DetailPanel extends JPanel implements TagEditorPanel {
|
||||
@Override
|
||||
public void run() {
|
||||
decompiledTextArea.removeScriptListener(this);
|
||||
decompiledTextArea.gotoTrait(lastTrait);
|
||||
if (lastTrait == GraphTextWriter.TRAIT_UNKNOWN) {
|
||||
decompiledTextArea.gotoLastMethod();
|
||||
} else {
|
||||
decompiledTextArea.gotoTrait(lastTrait);
|
||||
}
|
||||
setEditMode(false);
|
||||
View.showMessageDialog(null, AppStrings.translate("message.trait.saved"), AppStrings.translate("dialog.message.title"), JOptionPane.INFORMATION_MESSAGE, Configuration.showTraitSavedMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user