Clean up shared context in desktop

This commit is contained in:
Jonathan Kelley committed 2024-01-05 12:37:47 -08:00
1 parent 8e9984b4b5
commit cbed09b95c
6 files changed
+34 -33

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ pub struct WebviewInstance {
}
impl WebviewInstance {
pub fn new(mut cfg: Config, dom: VirtualDom, shared: SharedContext) -> WebviewInstance {
pub fn new(mut cfg: Config, dom: VirtualDom, shared: Rc<SharedContext>) -> WebviewInstance {
let window = cfg.window.clone().build(&shared.target).unwrap();
// TODO: allow users to specify their own menubars, again :/