fix compilation

This commit is contained in:
Evan Almloff committed 2024-01-04 17:04:56 -06:00
1 parent bcc2da4b42
commit f6acaba061
8 files changed
+113 -112

No files matched your search

+1 -2
View File
@@ -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);