Overrride WFMR-window's reject to properly reset game-state

This commit is contained in:
Raffson 2025-07-13 13:46:57 +02:00
parent 4412a0fa91
commit ad100a1a17
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -237,6 +237,10 @@ class QWaitingForMissionResultWindow(QDialog):
self.on_debriefing_update(
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):
self.sim_controller.set_game(self.game)