close success popup when simulation is resumed

This commit is contained in:
Crispy 2024-10-07 17:05:40 +02:00
parent e661483cd5
commit 34fb5f1dd2

View file

@ -147,6 +147,9 @@ impl Editor {
fn step(&mut self) { fn step(&mut self) {
self.machine.step(); self.machine.step();
if self.complete_popup == Popup::Visible {
self.complete_popup = Popup::Dismissed;
}
if !self.level.outputs().is_empty() if !self.level.outputs().is_empty()
&& self.level.outputs() == self.machine.output() && self.level.outputs() == self.machine.output()
&& self.complete_popup == Popup::Start && self.complete_popup == Popup::Start