mirror of
https://github.com/imgurbot12/rmenu.git
synced 2024-09-20 11:31:18 +02:00
fix: debug window usage should be gated with macro
This commit is contained in:
parent
838398a959
commit
5384ad4492
@ -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| {
|
||||
|
Loading…
Reference in New Issue
Block a user