... | ... |
@@ -55,9 +55,15 @@ var setListeners = func { |
55 | 55 |
|
56 | 56 |
prop = '/autopilot/route-manager/current-wp'; |
57 | 57 |
data.listeners[prop] = setlistener(prop, |
58 |
- func (n) foreach (var c; keys(flightdeck)) |
|
59 |
- flightdeck[c].map.layers.route.onCurrentWaypointChange(n), |
|
60 |
- 0, 1); |
|
58 |
+ func (n) { |
|
59 |
+ var delay = maketimer(2, func { |
|
60 |
+ foreach (var c; keys(flightdeck)) |
|
61 |
+ flightdeck[c].map.layers.route.onCurrentWaypointChange( |
|
62 |
+ props.globals.getNode('/autopilot/route-manager/current-wp')); |
|
63 |
+ }); |
|
64 |
+ delay.singleShot = 1; |
|
65 |
+ delay.start(); |
|
66 |
+ }, 0, 1); |
|
61 | 67 |
|
62 | 68 |
prop = '/autopilot/route-manager/active'; |
63 | 69 |
data.listeners[prop] = setlistener(prop, |