perf(tui): avoid redundant idle rendering

This commit is contained in:
objz committed 2026-07-11 17:13:02 +02:00
1 parent d10be1676e
commit c792e1cc11
9 files changed
+144 -63

No files matched your search

+2
View File
@@ -92,6 +92,7 @@ impl ScreenshotsState {
if let Ok(mut slot) = pending.lock() {
*slot = Some((tag, entries));
crate::tui::request_redraw();
}
});
}
@@ -148,6 +149,7 @@ impl ScreenshotsState {
&& let Ok(mut slot) = pending.lock()
{
slot.push((idx, img));
crate::tui::request_redraw();
}
});
}