From 34fb5f1dd2484c13cae0fa524f999365b14622d4 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Mon, 7 Oct 2024 17:05:40 +0200 Subject: [PATCH] close success popup when simulation is resumed --- src/editor.rs | 3 +++ 1 file changed, 3 insertions(+) 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