debug: fix memory debug builds

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-08-25 15:27:36 -07:00
parent 76fd7a9753
commit c2f012ff75

View File

@@ -777,14 +777,14 @@ fn bottomup_sidebar(
.on_hover_cursor(egui::CursorIcon::PointingHand)
.clicked()
{
chrome.show_memory_debug = !chrome.show_memory_debug;
chrome.options.toggle(ChromeOptions::MemoryDebug);
}
}
if let Some(resident) = mem_use.resident {
ui.weak(format!("{}", format_bytes(resident as f64)));
}
if chrome.show_memory_debug {
if chrome.options.contains(ChromeOptions::MemoryDebug) {
egui::Window::new("Memory Debug").show(ui.ctx(), memory_debug_ui);
}
}