Skip to content

Commit 218bcb9

Browse files
committed
Indexing: Refresh UI after full scan completes
- Emit `index-dir-updated` with `["/"]` after aggregation completes so both panes refresh and show directory sizes immediately - Previously, sizes only appeared after the user navigated or scrolled
1 parent 5744636 commit 218bcb9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • apps/desktop/src-tauri/src/indexing

apps/desktop/src-tauri/src/indexing/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,15 @@ impl IndexManager {
599599
// the progress overlay.
600600
let _ = app.emit("index-aggregation-complete", ());
601601

602+
// Tell the frontend to refresh all visible listings — directory
603+
// sizes are now available for the first time after a full scan.
604+
let _ = app.emit(
605+
"index-dir-updated",
606+
IndexDirUpdatedEvent {
607+
paths: vec!["/".to_string()],
608+
},
609+
);
610+
602611
// Open a read connection for path resolution during replay
603612
let replay_conn = match IndexStore::open_write_connection(&writer.db_path()) {
604613
Ok(c) => c,

0 commit comments

Comments
 (0)