put webview in rc

This commit is contained in:
Jonathan Kelley 2023-06-30 14:39:38 -07:00
parent e77a14dbf7
commit 3658698064
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ pub(crate) type WebviewQueue = Rc<RefCell<Vec<WebviewHandler>>>;
/// ```
pub struct DesktopService {
/// The wry/tao proxy to the current window
pub webview: WebView,
pub webview: Rc<WebView>,
/// 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(),