mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Deepcopy of waypoints for cloned flights
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""Widgets for displaying air tasking orders."""
|
||||
import logging
|
||||
from copy import deepcopy
|
||||
from typing import Optional
|
||||
|
||||
from PySide6.QtCore import (
|
||||
@@ -143,6 +144,7 @@ class QFlightList(QListView):
|
||||
)
|
||||
return
|
||||
self.package_model.add_flight(clone)
|
||||
clone.flight_plan.layout = deepcopy(flight.flight_plan.layout)
|
||||
EventStream.put_nowait(GameUpdateEvents().new_flight(clone))
|
||||
|
||||
def cancel_or_abort_flight(self, index: QModelIndex) -> None:
|
||||
|
||||
Reference in New Issue
Block a user