better global state structure?
This commit is contained in:
1 parent
30bc55c78e
commit
bae17235c6
23 files changed
+335
-230
No files matched your search
@@ -19,7 +19,7 @@ pub trait WidgetLike<State: 'static + HasUi, Tag>: Sized {
|
||||
}
|
||||
|
||||
fn set_root(self, state: &mut State) {
|
||||
state.ui().root = Some(self.add(state));
|
||||
state.get_mut().root = Some(self.add(state));
|
||||
}
|
||||
|
||||
fn handles(self, state: &mut State) -> WidgetHandles<Self::Widget> {
|
||||
|
||||
Reference in new issue
Block a user