Files
lightcraft/docs
Nathaniel LedfordandClaude d10a9af00b LR-LIB-SMARTALBUM: creating or giving a keyword no longer freezes the window while albums are counted
In a large library with smart albums, the frame after an edit the album
tally could not follow photo by photo counted every smart album over
every photo on the UI thread: seconds, during which the window froze.
Creating a keyword inside another one (and giving it to the selected
photos) was such an edit, because Op::SetKeyword was classed as a broad
op, so the view, the folder tree and the date groups were worked out
again too.

- The keyword list changes no photo and no rule, filter or sort reads
  it: Op::SetKeyword now records Aspects::KEYWORD_LIST instead of
  marking the catalog's change memory broad. The view and the albums'
  counts follow the edit from the photos it touched; only the keyword
  tree is made again.
- A count of every photo that is still needed (an album's rules or
  photos changed, an edit to more than 256 photos, a new minute with an
  "in the last…" rule, a library opened) runs on a worker thread over a
  copy of the catalog. The sidebar keeps the counts it showed (none
  before the first count, and none of another library) and follows the
  edits made meanwhile once the count is in. AlbumTally::update only
  follows now; the caller decides where to count whole.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-28 07:11:58 -04:00
..
2026-10-15 03:24:51 -04:00
2026-10-08 20:20:17 +00:00
2026-10-24 10:08:20 -04:00
2026-10-15 01:48:43 -04:00