Clear out old FSRS progress as new operation starts

https://forums.ankiweb.net/t/inconsistent-number-of-reviews-when-clicking-optimize/39275/6
This commit is contained in:
Damien Elmes 2024-01-08 13:23:25 +10:00
parent 3982e0c8fe
commit bfea56c470

View File

@ -96,6 +96,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
return;
}
computingWeights = true;
computeWeightsProgress = undefined;
try {
await runWithBackendProgress(
async () => {
@ -136,6 +137,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
return;
}
checkingWeights = true;
computeWeightsProgress = undefined;
try {
await runWithBackendProgress(
async () => {
@ -180,6 +182,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
return;
}
computingRetention = true;
computeRetentionProgress = undefined;
try {
await runWithBackendProgress(
async () => {