Don't rebuild the ATO model on selection change.

Much faster and avoids nasty concurrency issues between the JS and
Python side.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1719
This commit is contained in:
Dan Albert
2021-11-07 01:38:55 -07:00
parent d645b4fe73
commit 30cfd8a769
2 changed files with 44 additions and 17 deletions

View File

@@ -797,6 +797,7 @@ class Flight {
this.aircraft = null;
this.path = null;
this.commitBoundary = null;
this.flight.selectedChanged.connect(() => this.draw());
this.flight.positionChanged.connect(() => this.drawAircraftLocation());
this.flight.flightPlanChanged.connect(() => this.drawFlightPlan());
this.flight.commitBoundaryChanged.connect(() => this.drawCommitBoundary());