Feat/Message at 100% progress for optimize

This commit is contained in:
Luc Mcgrady 2025-06-09 00:09:40 +01:00
parent ce6497cd2b
commit d051df697a
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
2 changed files with 6 additions and 1 deletions

View file

@ -483,6 +483,7 @@ deck-config-percent-of-reviews =
*[other] { $pct }% of { $reviews } reviews *[other] { $pct }% of { $reviews } reviews
} }
deck-config-percent-input = { $pct }% deck-config-percent-input = { $pct }%
deck-config-checking-for-improvement = Checking for improvement...
deck-config-optimizing-preset = Optimizing preset { $current_count }/{ $total_count }... deck-config-optimizing-preset = Optimizing preset { $current_count }/{ $total_count }...
deck-config-fsrs-must-be-enabled = FSRS must be enabled first. deck-config-fsrs-must-be-enabled = FSRS must be enabled first.
deck-config-fsrs-params-optimal = The FSRS parameters currently appear to be optimal. deck-config-fsrs-params-optimal = The FSRS parameters currently appear to be optimal.

View file

@ -281,7 +281,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
if (val instanceof ComputeRetentionProgress) { if (val instanceof ComputeRetentionProgress) {
return `${pct}%`; return `${pct}%`;
} else { } else {
return tr.deckConfigPercentOfReviews({ pct, reviews: val.reviews }); if (val.current === val.total) {
return tr.deckConfigCheckingForImprovement();
} else {
return tr.deckConfigPercentOfReviews({ pct, reviews: val.reviews });
}
} }
} }