mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Extend maximum answer time... (#1698)
* Extend maximum answer time... Previously the time allowed to answer a question was capped at 10 minutes. While this makes sense for fact recall, it limits the utility of Anki when used for solving problems that can take more time to work through. This extends the maximum answer time to 2 hours, which seems to be a reasonable upper limit for solving a math or algorithm question. * Add warning when max answer time exceeds 10 minutes * Move warning below input field
This commit is contained in:
parent
1ec3741934
commit
d7a101827a
3 changed files with 13 additions and 1 deletions
|
@ -96,6 +96,7 @@ Araceli Yanez <github.com/aracelix>
|
|||
Sam Bradshaw <samjr.bradshaw@gmail.com>
|
||||
gnnoh <gerongfenh@gmail.com>
|
||||
Sachin Govind <sachin.govind.too@gmail.com>
|
||||
Bruce Harris <github.com/bruceharris>
|
||||
Patric Cunha <patricc@agap2.pt>
|
||||
Brayan Oliveira <github.com/BrayanDSO>
|
||||
|
||||
|
|
|
@ -265,6 +265,7 @@ deck-config-reviews-too-low =
|
|||
deck-config-learning-step-above-graduating-interval = The graduating interval should be at least as long as your final learning step.
|
||||
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-maximum-answer-secs-above-recommended = Anki can schedule your reviews more efficiently when you keep each question short.
|
||||
|
||||
## Selecting a deck
|
||||
|
||||
|
|
|
@ -10,12 +10,18 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
import SpinBoxRow from "./SpinBoxRow.svelte";
|
||||
import SwitchRow from "./SwitchRow.svelte";
|
||||
import TitledContainer from "./TitledContainer.svelte";
|
||||
import Warning from "./Warning.svelte";
|
||||
|
||||
export let state: DeckOptionsState;
|
||||
export let api: Record<string, never>;
|
||||
|
||||
const config = state.currentConfig;
|
||||
const defaults = state.defaults;
|
||||
|
||||
$: maximumAnswerSecondsAboveRecommended =
|
||||
$config.capAnswerTimeToSecs > 600
|
||||
? tr.deckConfigMaximumAnswerSecsAboveRecommended()
|
||||
: "";
|
||||
</script>
|
||||
|
||||
<TitledContainer title={tr.deckConfigTimerTitle()}>
|
||||
|
@ -25,13 +31,17 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
bind:value={$config.capAnswerTimeToSecs}
|
||||
defaultValue={defaults.capAnswerTimeToSecs}
|
||||
min={30}
|
||||
max={600}
|
||||
max={7200}
|
||||
markdownTooltip={tr.deckConfigMaximumAnswerSecsTooltip()}
|
||||
>
|
||||
{tr.deckConfigMaximumAnswerSecs()}
|
||||
</SpinBoxRow>
|
||||
</Item>
|
||||
|
||||
<Item>
|
||||
<Warning warning={maximumAnswerSecondsAboveRecommended} />
|
||||
</Item>
|
||||
|
||||
<Item>
|
||||
<!-- AnkiMobile hides this -->
|
||||
<div class="show-timer-switch" style="display: contents;">
|
||||
|
|
Loading…
Reference in a new issue