mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-02 22:30:20 -06:00
When the browser denies IndexedDB from the start (a sandboxed iframe without allow-same-origin, blocked site data), the banner "Brush preset changes are not saved: SecurityError … Browser storage is unavailable" stays above the app for the whole session, before any preset was touched and with nothing to dismiss. Show it only while a preset change is unsaved. Nothing is lost before the first change; that change brings the same banner with the reason. Write errors and rejected records keep showing it, as both leave changes unsaved. Co-authored-by: kuvshin888 <192736288+kuvshin888@users.noreply.github.com>