mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
fix dioxus desktop build
This commit is contained in:
parent
20480c0a2d
commit
9133c0a305
2 changed files with 2 additions and 4 deletions
|
@ -9,9 +9,8 @@ use crate::{
|
|||
AssetRequest, Config,
|
||||
};
|
||||
use dioxus_core::{
|
||||
once,
|
||||
prelude::{current_scope_id, ScopeId},
|
||||
VirtualDom,
|
||||
use_hook, VirtualDom,
|
||||
};
|
||||
use dioxus_interpreter_js::binary_protocol::Channel;
|
||||
use dioxus_interpreter_js::MutationState;
|
||||
|
@ -385,7 +384,7 @@ impl WryWindowEventHandlerInner {
|
|||
pub fn use_wry_event_handler(
|
||||
handler: impl FnMut(&Event<UserWindowEvent>, &EventLoopWindowTarget<UserWindowEvent>) + 'static,
|
||||
) -> WryEventHandler {
|
||||
once(move || {
|
||||
use_hook(move || {
|
||||
let desktop = window();
|
||||
|
||||
let id = desktop.create_wry_event_handler(handler);
|
||||
|
|
|
@ -107,7 +107,6 @@ pub(super) fn desktop_handler(
|
|||
) {
|
||||
// If the request is asking for edits (ie binary protocol streaming, do that)
|
||||
if request.uri().path().trim_matches('/') == "edits" {
|
||||
println!("Handling edits from handler");
|
||||
return edit_queue.handle_request(responder);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue