mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Redraw flight plans when they change.
This commit is contained in:
@@ -16,6 +16,7 @@ from PySide2.QtWidgets import (
|
||||
from gen.ato import Package
|
||||
from gen.flights.flight import Flight
|
||||
from ..models import AtoModel, GameModel, NullListModel, PackageModel
|
||||
from qt_ui.windows.GameUpdateSignal import GameUpdateSignal
|
||||
|
||||
|
||||
class QFlightList(QListView):
|
||||
@@ -134,6 +135,7 @@ class QFlightPanel(QGroupBox):
|
||||
self.game_model.game.aircraft_inventory.return_from_flight(
|
||||
self.flight_list.selected_item)
|
||||
self.package_model.delete_flight_at_index(index)
|
||||
GameUpdateSignal.get_instance().redraw_flight_paths()
|
||||
|
||||
|
||||
class QPackageList(QListView):
|
||||
@@ -217,6 +219,7 @@ class QPackagePanel(QGroupBox):
|
||||
logging.error(f"Cannot delete package when no package is selected.")
|
||||
return
|
||||
self.ato_model.delete_package_at_index(index)
|
||||
GameUpdateSignal.get_instance().redraw_flight_paths()
|
||||
|
||||
|
||||
class QAirTaskingOrderPanel(QSplitter):
|
||||
|
||||
Reference in New Issue
Block a user