app: open the clips grid
The clips screen lists the clips folder: one card per mp4 the user exported, newest first, with the clip's 16:9 stage, the champion it stars when its recording is in the loaded history, share, and a menu whose Delete removes the file. The folder read runs when the screen opens, and again when an export finishes on it. Computed highlights were the first plan for the grid, but a real history parses hundreds of timelines and some run to tens of MB, so the grid now reads only what the user actually exported.
This commit is contained in:
1 parent
fac1ec00da
commit
3f82f87a81
9 files changed
+577
-9
No files matched your search
@@ -557,6 +557,10 @@ pub fn tick(app: &mut App, tx: &mut Tx) -> bool {
|
||||
app.review.export_note = Some(format!("Clip saved to {path}"));
|
||||
app.review.export = None;
|
||||
changed = true;
|
||||
// The clips grid lists the folder this clip just joined.
|
||||
if app.screen == crate::app::Screen::Clips {
|
||||
app.refresh_clips();
|
||||
}
|
||||
}
|
||||
Ok(Err(e)) => {
|
||||
app.review.export_note = Some(format!("Export failed: {e}"));
|
||||
|
||||
Reference in new issue
Block a user