Stop a folder wipe from restoring the pre-wipe library catalog.

The in-memory catalog could outlive the write, so delete-all came back as thousands of empty tiles and a stale badge.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-24 12:01:25 -05:00
co-authored by Cursor
parent 39aa4b65d0
commit 545a3d749b
12 changed files with 393 additions and 131 deletions
+2 -1
View File
@@ -125,7 +125,7 @@
playsinline
/>
<img
v-else-if="ctx.selected"
v-else-if="ctx.selected && ctx.showSelectedStill"
v-show="!ctx.isHidden(ctx.selected)"
:key="ctx.selected.id+'-'+(ctx.stagePreviewNonce||0)"
class="m-stage-still"
@@ -155,6 +155,7 @@
@load-input="ctx.onLibraryLoadInput"
@load-input-raw="ctx.onLibraryLoadInputRaw"
@delete="ctx.onLibraryDelete"
@wiped="ctx.onLibraryWiped"
@toggle-preview="ctx.toggleReveal()"
/>