mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-12 05:27:07 +00:00
Pass the settings to build_child
This commit is contained in:
parent
7ed891e0c6
commit
4aac733238
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ where
|
||||||
E: Element,
|
E: Element,
|
||||||
F: FnOnce(&mut ViewContext<E::ViewState>) -> E,
|
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 }
|
WithSettings { settings, child }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue