Jonathan Kelley преди 1 година
родител
ревизия
26378631e0
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      packages/desktop/src/webview.rs

+ 6 - 2
packages/desktop/src/webview.rs

@@ -14,7 +14,7 @@ use futures_util::{pin_mut, FutureExt};
 use std::{any::Any, rc::Rc, task::Waker};
 use std::{any::Any, rc::Rc, task::Waker};
 use wry::{RequestAsyncResponder, WebContext, WebViewBuilder};
 use wry::{RequestAsyncResponder, WebContext, WebViewBuilder};
 
 
-pub struct WebviewInstance {
+pub(crate) struct WebviewInstance {
     pub dom: VirtualDom,
     pub dom: VirtualDom,
     pub desktop_context: DesktopContext,
     pub desktop_context: DesktopContext,
     pub waker: Waker,
     pub waker: Waker,
@@ -32,7 +32,11 @@ pub struct WebviewInstance {
 }
 }
 
 
 impl WebviewInstance {
 impl WebviewInstance {
-    pub fn new(mut cfg: Config, dom: VirtualDom, shared: Rc<SharedContext>) -> WebviewInstance {
+    pub(crate) fn new(
+        mut cfg: Config,
+        dom: VirtualDom,
+        shared: Rc<SharedContext>,
+    ) -> WebviewInstance {
         let window = cfg.window.clone().build(&shared.target).unwrap();
         let window = cfg.window.clone().build(&shared.target).unwrap();
 
 
         // We assume that if the icon is None in cfg, then the user just didnt set it
         // We assume that if the icon is None in cfg, then the user just didnt set it