dioxus-desktop(Update-dep): tauri 0.19.x (#489)

* Update(dep): tauri 0.19.x
This commit is contained in:
Adia Robbie authored and GitHub committed 2022-07-06 12:05:31 -04:00
1 parent baaa1752d3
commit c271fc132e
3 files changed
+4 -10

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ serde = "1.0.136"
serde_json = "1.0.79"
thiserror = "1.0.30"
log = "0.4.14"
wry = { version = "0.16.0" }
wry = { version = "0.19.0" }
futures-channel = "0.3.21"
tokio = { version = "1.16.1", features = [
"sync",
+3 -2
View File
@@ -6,8 +6,9 @@ use std::sync::Arc;
use dioxus_core::{ElementId, EventPriority, UserEvent};
use dioxus_html::event_bubbles;
use dioxus_html::on::*;
use serde::{Deserialize, Serialize};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Deserialize, Serialize)]
pub(crate) struct IpcMessage {
method: String,
params: serde_json::Value,
@@ -33,7 +34,7 @@ pub(crate) fn parse_ipc_message(payload: &str) -> Option<IpcMessage> {
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Deserialize, Serialize)]
struct ImEvent {
event: String,
mounted_dom_id: u64,
-7
View File
@@ -213,13 +213,6 @@ pub fn launch_with_props<P: 'static + Send>(
} => match event {
WindowEvent::CloseRequested => *control_flow = ControlFlow::Exit,
WindowEvent::Destroyed { .. } => desktop.close_window(window_id, control_flow),
WindowEvent::Resized(_) | WindowEvent::Moved(_) => {
if let Some(view) = desktop.webviews.get_mut(&window_id) {
let _ = view.resize();
}
}
_ => {}
},