mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
Merge pull request #395 from DioxusLabs/jk/update-tauri
feat: upgrade wry Co-authored-by: Ar37-rs<adyaro37@gmail.com>
This commit is contained in:
commit
f2c48c5d90
4 changed files with 4 additions and 9 deletions
|
@ -44,7 +44,6 @@ html = ["dioxus-html"]
|
|||
ssr = ["dioxus-ssr"]
|
||||
web = ["dioxus-web", "dioxus-router/web"]
|
||||
desktop = ["dioxus-desktop"]
|
||||
ayatana = ["dioxus-desktop/ayatana"]
|
||||
router = ["dioxus-router"]
|
||||
tui = ["dioxus-tui"]
|
||||
liveview = ["dioxus-liveview"]
|
||||
|
|
|
@ -20,7 +20,7 @@ serde = "1.0.136"
|
|||
serde_json = "1.0.79"
|
||||
thiserror = "1.0.30"
|
||||
log = "0.4.14"
|
||||
wry = { version = "0.13.1" }
|
||||
wry = { version = "0.16.0" }
|
||||
futures-channel = "0.3.21"
|
||||
tokio = { version = "1.16.1", features = [
|
||||
"sync",
|
||||
|
@ -28,7 +28,7 @@ tokio = { version = "1.16.1", features = [
|
|||
"rt",
|
||||
"time",
|
||||
], optional = true, default-features = false }
|
||||
webbrowser = "0.6.0"
|
||||
webbrowser = "0.7.1"
|
||||
mime_guess = "2.0.3"
|
||||
dunce = "1.0.2"
|
||||
|
||||
|
@ -38,13 +38,9 @@ core-foundation = "0.9.3"
|
|||
[features]
|
||||
default = ["tokio_runtime"]
|
||||
tokio_runtime = ["tokio"]
|
||||
|
||||
devtool = ["wry/devtool"]
|
||||
fullscreen = ["wry/fullscreen"]
|
||||
transparent = ["wry/transparent"]
|
||||
|
||||
tray = ["wry/tray"]
|
||||
ayatana = ["wry/ayatana"]
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -191,7 +191,7 @@ pub(super) fn handler(
|
|||
SetTitle(content) => window.set_title(&content),
|
||||
SetDecorations(state) => window.set_decorations(state),
|
||||
|
||||
DevTool => webview.devtool(),
|
||||
DevTool => {}
|
||||
|
||||
Eval(code) => webview
|
||||
.evaluate_script(code.as_str())
|
||||
|
|
|
@ -200,7 +200,7 @@ pub fn launch_with_props<P: 'static + Send>(
|
|||
)
|
||||
} else {
|
||||
// in debug, we are okay with the reload menu showing and dev tool
|
||||
webview = webview.with_dev_tool(true);
|
||||
webview = webview.with_devtools(true);
|
||||
}
|
||||
|
||||
desktop.webviews.insert(window_id, webview.build().unwrap());
|
||||
|
|
Loading…
Reference in a new issue