mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Stop fetching timing info for unselected flights.
The flight will be redrawn when it's selected. Don't bother fetching this info for flights that aren't selected.
This commit is contained in:
parent
8d806def5b
commit
89b987fc87
@ -714,11 +714,13 @@ class Waypoint {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.description(false).then((description) =>
|
if (this.flight.selected) {
|
||||||
marker.bindTooltip(description, {
|
this.description(false).then((description) =>
|
||||||
permanent: zoom >= SHOW_WAYPOINT_INFO_AT_ZOOM,
|
marker.bindTooltip(description, {
|
||||||
})
|
permanent: zoom >= SHOW_WAYPOINT_INFO_AT_ZOOM,
|
||||||
);
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return marker;
|
return marker;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user