forked from StudioInfinity/dyna3
Clear the regulator list when switching examples
This commit is contained in:
parent
81e423fcbe
commit
e1952d7d52
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ pub fn AddRemove() -> View {
|
|||
let assembly = &state.assembly;
|
||||
|
||||
// clear state
|
||||
assembly.regulators.update(|regs| regs.clear());
|
||||
assembly.elements.update(|elts| elts.clear());
|
||||
assembly.elements_by_id.update(|elts_by_id| elts_by_id.clear());
|
||||
state.selection.update(|sel| sel.clear());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue