Skip to content

Commit

Permalink
Fix compile error in release
Browse files Browse the repository at this point in the history
  • Loading branch information
melody-rs committed Nov 22, 2023
1 parent 6998d64 commit 08f8df9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/top_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,12 @@ impl TopBar {
.add_window(luminol_ui::windows::misc::EguiMemory::default());
}

let mut debug_on_hover = ui.ctx().debug_on_hover();
ui.toggle_value(&mut debug_on_hover, "Debug on hover");
ui.ctx().set_debug_on_hover(debug_on_hover);
#[cfg(debug_assertions)]
{
let mut debug_on_hover = ui.ctx().debug_on_hover();
ui.toggle_value(&mut debug_on_hover, "Debug on hover");
ui.ctx().set_debug_on_hover(debug_on_hover);
}

ui.separator();

Expand Down

0 comments on commit 08f8df9

Please sign in to comment.