better global state structure?

This commit is contained in:
iris committed 2025-12-19 21:54:48 -05:00
1 parent 30bc55c78e
commit bae17235c6
23 files changed
+335 -230

No files matched your search

+1 -1
View File
@@ -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> {