Skip to content

Commit

Permalink
Merge pull request #89 from jugne/remove_suppressed_inputs
Browse files Browse the repository at this point in the history
Fixes disappearing parameters when switching between Tree priors
  • Loading branch information
rbouckaert authored Sep 25, 2024
2 parents 6d30f95 + 8e8deab commit 61e805c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/beastfx/app/inputeditor/BeautiSubTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 61e805c

Please sign in to comment.