Skip to content

Commit

Permalink
Chart: fix binding disposal when removing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
protogenes authored and wirew0rm committed Aug 19, 2024
1 parent 9cff45b commit 7908d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chartfx-chart/src/main/java/io/fair_acc/chartfx/Chart.java
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ protected void pluginAdded(final ChartPlugin plugin) {
protected void pluginRemoved(final ChartPlugin plugin) {
plugin.setChart(null);
final Group group = pluginGroups.remove(plugin);
Bindings.unbindContent(group, plugin.getChartChildren());
Bindings.unbindContent(group.getChildren(), plugin.getChartChildren());
group.getChildren().clear();
pluginsArea.getChildren().remove(group);
}
Expand Down

0 comments on commit 7908d4c

Please sign in to comment.