mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
fixed potential issue with button disabling
This commit is contained in:
parent
2a777f3198
commit
bb8829833c
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ class Controls {
|
||||||
bus.on("automata/sim/update", simulation => {
|
bus.on("automata/sim/update", simulation => {
|
||||||
Controls.simulation_active = !!simulation;
|
Controls.simulation_active = !!simulation;
|
||||||
if (!simulation) Controls.stop();
|
if (!simulation) Controls.stop();
|
||||||
|
Controls.updateButtons();
|
||||||
});
|
});
|
||||||
|
|
||||||
bus.on("automata/sim/after_step", ({ result }) => {
|
bus.on("automata/sim/after_step", ({ result }) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue