Ensure dashboard quit saves state and ignore artifacts
This commit is contained in:
@@ -94,6 +94,9 @@ class ReactorDashboard:
|
||||
self._draw(stdscr, state)
|
||||
self._handle_input(stdscr)
|
||||
if self.quit_requested or self.reset_requested:
|
||||
# Persist the latest state if we are exiting early.
|
||||
if self.sim:
|
||||
self.sim.last_state = state
|
||||
self.sim.stop()
|
||||
break
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user