Files
lightcraft/crates
mpratsakiandClaude Opus 5.5 142ddcff29 LRC-LIB-MISSING: the Missing Photos count is pending sidebar work
The sidebar's Missing Photos row appears when the background count of
missing files lands, and moves every row below it down. That worker was
not counted in fs_cached_running, so Headless::settle() did not wait for
it: on a busy machine the row appeared after settling, and a click aimed
at a folder row from the settled layout landed on the row above it
(a_folder_menu_locates_its_missing_tree_only located `other` instead of
`trip`).

- missing_count adds itself to the fs_cached_running counter before it
  starts and takes itself off after the count is stored, as fs_cached does
- the worker starts with thread::Builder::spawn instead of thread::spawn,
  which panics when the OS refuses a thread; on failure the last count
  stays and the next refresh tries again
- settling_waits_for_the_missing_photos_count delays the worker by 1 s
  (test-only field on LightcraftApp, which ui.set does not rebuild) and
  fails without the fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:05:18 +02:00
..