clear_selected_vars, select_vars, selected_vars
This commit is contained in:
parent
d078f3a470
commit
0cd6dce47c
7 changed files with 94 additions and 38 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::rc::Rc;
|
||||
use std::sync::Arc;
|
||||
use zoon::*;
|
||||
|
||||
mod platform;
|
||||
|
@ -25,6 +25,7 @@ type Filename = String;
|
|||
#[derive(Default)]
|
||||
struct Store {
|
||||
selected_var_refs: MutableVec<wellen::VarRef>,
|
||||
hierarchy: Mutable<Option<Arc<wellen::Hierarchy>>>,
|
||||
}
|
||||
|
||||
static STORE: Lazy<Store> = lazy::default();
|
||||
|
@ -39,7 +40,7 @@ fn main() {
|
|||
}
|
||||
|
||||
fn root() -> impl Element {
|
||||
let hierarchy: Mutable<Option<Rc<wellen::Hierarchy>>> = <_>::default();
|
||||
let hierarchy = STORE.hierarchy.clone();
|
||||
let selected_var_refs = STORE.selected_var_refs.clone();
|
||||
let layout: Mutable<Layout> = <_>::default();
|
||||
let loaded_filename: Mutable<Option<Filename>> = <_>::default();
|
||||
|
|
Reference in a new issue