From 8e8deab86482dddb97bd5dd88a8fb9705330d348 Mon Sep 17 00:00:00 2001 From: jugne Date: Wed, 25 Sep 2024 15:33:21 +0200 Subject: [PATCH] Fixes disapearing parameters when switching between Tree priors --- src/beastfx/app/inputeditor/BeautiSubTemplate.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/beastfx/app/inputeditor/BeautiSubTemplate.java b/src/beastfx/app/inputeditor/BeautiSubTemplate.java index 9ae1f7e..0b0d874 100644 --- a/src/beastfx/app/inputeditor/BeautiSubTemplate.java +++ b/src/beastfx/app/inputeditor/BeautiSubTemplate.java @@ -269,6 +269,13 @@ public void removeSubNet(BeautiSubTemplate template, PartitionContext context) for (BeautiConnector connector : template.connectors) { doc.disconnect(connector, context); } + if (template.suppressedInputs.get() != null) { + String[] inputs = template.suppressedInputs.get().split(","); + for (String input : inputs) { + input = input.trim(); + doc.beautiConfig.suppressBEASTObjects.remove(input); + } + } } void removeSubNet(Object o) {