ankitects / ankitects/anki

Unconditional warning when optimizing all presets

Open
#5,175 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.