Update FsrsOptions.svelte

This commit is contained in:
Sunong2008 2025-06-09 12:35:49 +08:00 committed by GitHub
parent 7bdc4b5374
commit 201a3d6aa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
$: desiredRetentionWarning = getRetentionLongShortWarning(roundedRetention);
let timeoutId: ReturnType<typeof setTimeout> | undefined = undefined;
const WORKLOAD_UPDATE_DELAY_MS = 250;
const WORKLOAD_UPDATE_DELAY_MS = 100;
let desiredRetentionChangeInfo = "";
$: {
@ -207,7 +207,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}
if (!already_optimal) {
$config.fsrsParams6 = resp.params;
optimized = true;
setTimeout(() => {
optimized = true;
}, 201);
}
if (computeParamsProgress) {
computeParamsProgress.current = computeParamsProgress.total;