fix compilation
This commit is contained in:
1 parent
bcc2da4b42
commit
f6acaba061
8 files changed
+113
-112
No files matched your search
@@ -466,9 +466,8 @@ pub fn use_wry_event_handler(
|
||||
cx: &ScopeState,
|
||||
handler: impl FnMut(&Event<UserWindowEvent>, &EventLoopWindowTarget<UserWindowEvent>) + 'static,
|
||||
) -> &WryEventHandler {
|
||||
let desktop = use_window(cx);
|
||||
cx.use_hook(move || {
|
||||
let desktop = desktop.clone();
|
||||
let desktop = window();
|
||||
|
||||
let id = desktop.create_wry_event_handler(handler);
|
||||
|
||||
|
||||
Reference in new issue
Block a user