commit c2f012ff756301ea39264bec6362273091ece62d
parent 76fd7a97533a96c4df469a19de7d51720dc2e1d4
Author: William Casarin <jb55@jb55.com>
Date: Mon, 25 Aug 2025 15:27:36 -0700
debug: fix memory debug builds
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs
@@ -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);
}
}