This commit is contained in:
Nathan Sobo
2023-08-05 18:00:44 -06:00
parent d3c1966d96
commit dcf8b00656
2 changed files with 35 additions and 26 deletions
+1 -1
View File
@@ -1157,7 +1157,7 @@ impl<'a> WindowContext<'a> {
self.window.platform_window.prompt(level, msg, answers)
}
pub fn replace_root_view<V, F>(&mut self, build_root_view: F) -> WindowHandle<V>
pub(crate) fn replace_root_view<V, F>(&mut self, build_root_view: F) -> WindowHandle<V>
where
V: View,
F: FnOnce(&mut ViewContext<V>) -> V,