mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Added: Max interval too low warning. (#3847)
* Added: Max interval too low warning. * Lower threshold to 180 * Add self to about.py
This commit is contained in:
parent
94e90dbf85
commit
cad6e0b0bf
3 changed files with 15 additions and 0 deletions
|
@ -371,6 +371,7 @@ deck-config-learning-step-above-graduating-interval = The graduating interval sh
|
||||||
deck-config-good-above-easy = The easy interval should be at least as long as the graduating interval.
|
deck-config-good-above-easy = The easy interval should be at least as long as the graduating interval.
|
||||||
deck-config-relearning-steps-above-minimum-interval = The minimum lapse interval should be at least as long as your final relearning step.
|
deck-config-relearning-steps-above-minimum-interval = The minimum lapse interval should be at least as long as your final relearning step.
|
||||||
deck-config-maximum-answer-secs-above-recommended = Anki can schedule your reviews more efficiently when you keep each question short.
|
deck-config-maximum-answer-secs-above-recommended = Anki can schedule your reviews more efficiently when you keep each question short.
|
||||||
|
deck-config-too-short-maximum-interval = A maximum interval less than 6 months is not recommended.
|
||||||
|
|
||||||
## Selecting a deck
|
## Selecting a deck
|
||||||
|
|
||||||
|
|
|
@ -215,6 +215,7 @@ def show(mw: aqt.AnkiQt) -> QDialog:
|
||||||
"Danika_Dakika",
|
"Danika_Dakika",
|
||||||
"Marcelo Vasconcelos",
|
"Marcelo Vasconcelos",
|
||||||
"Mumtaz Hajjo Alrifai",
|
"Mumtaz Hajjo Alrifai",
|
||||||
|
"Luc Mcgrady",
|
||||||
"Brayan Oliveira",
|
"Brayan Oliveira",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,6 +20,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
|
||||||
import SpinBoxRow from "./SpinBoxRow.svelte";
|
import SpinBoxRow from "./SpinBoxRow.svelte";
|
||||||
import DateInput from "./DateInput.svelte";
|
import DateInput from "./DateInput.svelte";
|
||||||
|
import Warning from "./Warning.svelte";
|
||||||
|
|
||||||
export let state: DeckOptionsState;
|
export let state: DeckOptionsState;
|
||||||
export let api: Record<string, never>;
|
export let api: Record<string, never>;
|
||||||
|
@ -83,6 +84,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
};
|
};
|
||||||
const helpSections: HelpItem[] = Object.values(settings);
|
const helpSections: HelpItem[] = Object.values(settings);
|
||||||
|
|
||||||
|
$: maxIntervalWarningClass =
|
||||||
|
$config.maximumReviewInterval < 50 ? "alert-danger" : "alert-warning";
|
||||||
|
$: maxIntervalWarning =
|
||||||
|
$config.maximumReviewInterval < 180
|
||||||
|
? tr.deckConfigTooShortMaximumInterval()
|
||||||
|
: "";
|
||||||
|
|
||||||
let modal: Modal;
|
let modal: Modal;
|
||||||
let carousel: Carousel;
|
let carousel: Carousel;
|
||||||
|
|
||||||
|
@ -121,6 +129,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</SpinBoxRow>
|
</SpinBoxRow>
|
||||||
</Item>
|
</Item>
|
||||||
|
|
||||||
|
<Item>
|
||||||
|
<Warning warning={maxIntervalWarning} className={maxIntervalWarningClass}
|
||||||
|
></Warning>
|
||||||
|
</Item>
|
||||||
|
|
||||||
{#if !$fsrs}
|
{#if !$fsrs}
|
||||||
<Item>
|
<Item>
|
||||||
<SpinBoxFloatRow
|
<SpinBoxFloatRow
|
||||||
|
|
Loading…
Reference in a new issue