Pass the settings to build_child

This commit is contained in:
Marshall Bowers 2023-10-19 13:23:08 -04:00
parent 7ed891e0c6
commit 4aac733238

View file

@ -78,7 +78,7 @@ where
E: Element,
F: FnOnce(&mut ViewContext<E::ViewState>) -> E,
{
let child = cx.with_global(theme.clone(), |cx| build_child(cx));
let child = cx.with_global(settings.clone(), |cx| build_child(cx));
WithSettings { settings, child }
}