diff --git a/src/editor.rs b/src/editor.rs index 1168b52..1727775 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -147,6 +147,9 @@ impl Editor { fn step(&mut self) { self.machine.step(); + if self.complete_popup == Popup::Visible { + self.complete_popup = Popup::Dismissed; + } if !self.level.outputs().is_empty() && self.level.outputs() == self.machine.output() && self.complete_popup == Popup::Start