mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
Merge remote-tracking branch 'origin/simulator_dev'
This commit is contained in:
+6
@@ -568,6 +568,7 @@ public class SimulatorMap extends AbsolutePanel implements RequiresDataInitializ
|
||||
for (PathCanvasOverlay r : this.replayPathCanvasOverlays) {
|
||||
r.displayWindAlongPath = true;
|
||||
this.timer.removeTimeListener(r);
|
||||
this.timeListeners.remove(r);
|
||||
r.setTimer(null);
|
||||
r.setVisible(true);
|
||||
r.redraw(true);
|
||||
@@ -605,6 +606,9 @@ public class SimulatorMap extends AbsolutePanel implements RequiresDataInitializ
|
||||
r.displayWindAlongPath = false;
|
||||
r.setTimer(this.timer);
|
||||
this.timer.addTimeListener(r);
|
||||
if (!this.timeListeners.contains(r)) {
|
||||
this.timeListeners.add(r);
|
||||
}
|
||||
r.setVisible(true);
|
||||
r.redraw(true);
|
||||
}
|
||||
@@ -643,6 +647,8 @@ public class SimulatorMap extends AbsolutePanel implements RequiresDataInitializ
|
||||
timePanel.resetTimeSlider();
|
||||
for (PathCanvasOverlay r : this.replayPathCanvasOverlays) {
|
||||
r.setVisible(false);
|
||||
this.timer.removeTimeListener(r);
|
||||
this.timeListeners.remove(r);
|
||||
}
|
||||
this.legendCanvasOverlay.setVisible(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user