better global state structure?
This commit is contained in:
1 parent
30bc55c78e
commit
bae17235c6
23 files changed
+335
-230
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ impl Widget for Image {
|
||||
pub fn image<State: HasUi>(image: impl LoadableImage) -> impl WidgetFn<State, Image> {
|
||||
let image = image.get_image().expect("Failed to load image");
|
||||
move |state| Image {
|
||||
handle: state.ui().add_texture(image),
|
||||
handle: state.get_mut().add_texture(image),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user