From ca0a100d9a4e17075ca22214fd0141f121016308 Mon Sep 17 00:00:00 2001 From: Raffson Date: Fri, 16 Feb 2024 21:12:12 +0100 Subject: [PATCH] Send events when closing AWCD mid-campaign Should fix the issue where the map isn't properly updating after making changes to the AWCD --- qt_ui/windows/AirWingDialog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qt_ui/windows/AirWingDialog.py b/qt_ui/windows/AirWingDialog.py index 3c56607f..87f902f3 100644 --- a/qt_ui/windows/AirWingDialog.py +++ b/qt_ui/windows/AirWingDialog.py @@ -19,6 +19,8 @@ from PySide6.QtWidgets import ( ) from game.ato.flight import Flight +from game.server import EventStream +from game.sim import GameUpdateEvents from game.squadrons import Squadron from game.theater import ConflictTheater from qt_ui.delegates import TwoColumnRowDelegate @@ -258,6 +260,9 @@ class AirWingTabs(QTabWidget): def open_awcd(self, gm: GameModel): AirWingConfigurationDialog(gm.game, True, self).exec_() + events = GameUpdateEvents().begin_new_turn() + EventStream.put_nowait(events) + gm.ato_model.on_sim_update(events) class AirWingDialog(QDialog):