Files
poli0981andClaude Opus 4.7 406d68b19e fix(desktop): Windows AppData open-folder + add Import Settings (v0.14.1)
Same-day patch on v0.14.0 closing two desktop-only papercuts.

* `openSettingsFolder()` now pre-creates the app-data directory via a
  new `ensure_dir` Tauri command before calling `openPath(dir)`. Fixes
  the first-run "Windows cannot find ... AppData\Roaming\
  com.skullmute.ytdescgen" Explorer error — `appDataDir()` only
  resolves the path string; the folder itself was being created lazily
  on the first `save_to_file` write, so users who clicked Open Folder
  before any setting had persisted hit the shell with a non-existent
  path. `exportSettingsToFile` gets the same guard.

* Adds a Settings → Import button (Tauri-only, next to Export). Reads
  via the existing `loadFile()` dialog wrapper, accepts both the
  multi-store dump shape that Export produces *and* a bare
  SettingsData payload, runs the input through `healSettings()` to
  back-fill any missing keys, then dispatches via setState. Five
  failure modes get their own toast (cancel, read-error, empty,
  parse-error, non-object). Theme class on <html> is re-applied
  directly because setState bypasses the setTheme action.

Auto-regenerated Tauri ACL schemas from local tauri-dev (incidental
Tauri-plugin minor versions; not behavioural). package-lock.json
version bump only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 22:59:58 +07:00
..