mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Fix inability to save deck options when FSRS not enabled
This commit is contained in:
parent
123474c455
commit
7252dd56b6
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
async function save(mode: UpdateDeckConfigsMode): Promise<void> {
|
||||
await commitEditing();
|
||||
if (!get(state.fsrs)) {
|
||||
if (mode === UpdateDeckConfigsMode.COMPUTE_ALL_WEIGHTS && !get(state.fsrs)) {
|
||||
alert(tr.deckConfigFsrsMustBeEnabled());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue