From 24dfde2ab7101624fbf0fe6f59aa166e4e45be1e Mon Sep 17 00:00:00 2001 From: atornity <gonesbird@gmail.com> Date: Sun, 8 Jan 2023 12:07:23 +0100 Subject: [PATCH] Update chapter_1.md add_plugin(KayakWidgetsContextPlugin) is required for it to work (I don't know why lol) --- book/src/chapter_1.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book/src/chapter_1.md b/book/src/chapter_1.md index 1f8a6da..aede01c 100644 --- a/book/src/chapter_1.md +++ b/book/src/chapter_1.md @@ -20,6 +20,7 @@ fn startup( font_mapping.set_default(asset_server.load("roboto.kayak_font")); let mut widget_context = KayakRootContext::new(); + widget_context.add_plugin(KayakWidgetsContextPlugin); let parent_id = None; // The rsx! macro expects a parent_id, a widget_context from the user. @@ -35,7 +36,7 @@ fn startup( }} /> </KayakAppBundle> - } + }; commands.spawn(UICameraBundle::new(widget_context)); } -- GitLab