mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 14:31:35 +08:00
Add confirmation dialog when enabling single-file overwrite to ensure the user understands behavior (fixed filename, overwrites previous backup, keeps only latest). Initialize related state with safe defaults to avoid undefined values. Add inline help text recommending use cases. Introduce filename input handling: trim and validate the entered name, reject invalid characters, Windows reserved names, and overly long names; show toast errors for invalid input. Persist validated filename on blur. Wire up onChange handler for the filename input and disable the field unless overwrite mode and compatible backup settings are active. These changes improve UX and prevent accidental data loss or invalid filenames. |
||
|---|---|---|
| .. | ||
| main | ||
| preload | ||
| renderer | ||