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

@ -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()