Unconditional warning when optimizing all presets
Open
- Dominant language
- Rust
- Stars
- 31.2k
- Forks
- 3.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 72
Description
After https://github.com/ankitects/anki/pull/4981, clicking "Optimize all presets" shows a warning that says "This will save any other changes you have made. Are you sure?" even if the user hasn't made any other change. This warning should be shown only if there are unsaved changes.
@Luc-Mcgrady
Contributor guide
Research direction
Start from the entry point for the “Optimize all presets” action and reproduce the warning with and without unsaved changes. Trace the existing unsaved-change state and add coverage wherever the relevant tests live; done means the warning appears only when other changes are unsaved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100