mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Overrride WFMR-window's reject to properly reset game-state
This commit is contained in:
parent
4412a0fa91
commit
ad100a1a17
@ -238,6 +238,10 @@ class QWaitingForMissionResultWindow(QDialog):
|
|||||||
self.sim_controller.debrief_current_state(Path(file[0]), force_end=True)
|
self.sim_controller.debrief_current_state(Path(file[0]), force_end=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def reject(self):
|
||||||
|
self.reset_game_state()
|
||||||
|
super().reject()
|
||||||
|
|
||||||
def reset_game_state(self):
|
def reset_game_state(self):
|
||||||
self.sim_controller.set_game(self.game)
|
self.sim_controller.set_game(self.game)
|
||||||
events = GameUpdateEvents()
|
events = GameUpdateEvents()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user