features ui debug is now working perfectly well, it debugs the rerender flags

This commit is contained in:
filipriec
2025-06-08 09:26:56 +02:00
parent f9841f2ef3
commit e61cbb3956
5 changed files with 65 additions and 19 deletions

View File

@@ -497,6 +497,14 @@ pub async fn run_ui() -> Result<()> {
needs_redraw = true;
}
#[cfg(feature = "ui-debug")]
{
app_state.debug_info = format!(
"Redraw -> event: {}, needs_redraw: {}, pos_changed: {}",
event_processed, needs_redraw, position_changed
);
}
if event_processed || needs_redraw || position_changed {
let current_mode = ModeManager::derive_mode(&app_state, &event_handler, &admin_state);
match current_mode {