fix: debug window usage should be gated with macro

This commit is contained in:
imgurbot12 2024-07-10 22:05:43 -07:00
parent 838398a959
commit 5384ad4492

View File

@ -59,6 +59,7 @@ fn gui_main() -> Element {
});
// declare keyboard handler
#[cfg(debug_assertions)]
let window = dioxus_desktop::use_window();
let key_ctx = use_context::<Ctx>();
let keydown = move |e: KeyboardEvent| {