perf(tui): avoid redundant idle rendering
This commit is contained in:
1 parent
d10be1676e
commit
c792e1cc11
9 files changed
+144
-63
No files matched your search
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user