close success popup when simulation is resumed
This commit is contained in:
parent
e661483cd5
commit
34fb5f1dd2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue