浏览代码

forgot one

Andrew Collins 2 年之前
父节点
当前提交
64575eaee2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/desktop/src/lib.rs

+ 1 - 1
packages/desktop/src/lib.rs

@@ -248,7 +248,7 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
                     webviews[&event.1]
                         .dom
                         .base_scope()
-                        .consume_context::<DesktopContext>()
+                        .consume_context::<Rc<DesktopContext>>()
                         .unwrap()
                         .eval
                         .send(msg.params())