From 365869806401655851f219e325d0d1a9e0dad7e4 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Fri, 30 Jun 2023 14:39:38 -0700 Subject: [PATCH] put webview in rc --- packages/desktop/src/desktop_context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop/src/desktop_context.rs b/packages/desktop/src/desktop_context.rs index 1caa0da64..92d49fd4e 100644 --- a/packages/desktop/src/desktop_context.rs +++ b/packages/desktop/src/desktop_context.rs @@ -52,7 +52,7 @@ pub(crate) type WebviewQueue = Rc>>; /// ``` pub struct DesktopService { /// The wry/tao proxy to the current window - pub webview: WebView, + pub webview: Rc, /// The proxy to the event loop pub proxy: ProxyType, @@ -94,7 +94,7 @@ impl DesktopService { shortcut_manager: ShortcutRegistry, ) -> Self { Self { - webview, + webview: Rc::new(webview), proxy, event_loop, query: Default::default(),