Maybe fixed updating boat list on FX thread.

main
fjc40 9 years ago
parent 0483859c40
commit a4755ed88b

@ -1,6 +1,7 @@
package visualiser.model; package visualiser.model;
import javafx.application.Platform;
import javafx.collections.FXCollections; import javafx.collections.FXCollections;
import javafx.collections.ObservableList; import javafx.collections.ObservableList;
import javafx.scene.paint.Color; import javafx.scene.paint.Color;
@ -182,7 +183,7 @@ public class VisualiserRaceState extends RaceState {
boat.setCurrentLeg(getLegs().get(0)); boat.setCurrentLeg(getLegs().get(0));
existingBoats.add(boat); Platform.runLater(() -> existingBoats.add(boat));
} }

Loading…
Cancel
Save