mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
History gets a generation that every change takes a fresh number from, and the snapshot list one through DocState::snapshots_mut, so the History rows rebuild only when either moves. Artboard pages and the layers a Move drag takes along are computed once per document revision; set_active_layer moves the revision like the other layer selection changes, through one bump_selection_revision. The view-only revision steps of history options, the channel eyes and Isolate Layers go through bump_view_revision; Isolate Layers still marks the document modified. DocQueries drops every entry when the open document set changes, and counts what it computes, which the idle trial asserts stays unchanged. Fill layers' thumbnails key on impl Hash for Fill. A new trial checks the Layers rows' revision follows a rename and both disclosure toggles.