mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 12:33:55 -05:00
Use OriginalStockKind instead of StockKind when setting original_stock_kind for basic notetype variants. The two enums have different numeric values, causing 'Restore to Default' to restore the wrong template. For example, StockKind::BasicTyping has value 3, but when read back as OriginalStockKind, value 3 corresponds to BasicOptionalReversed instead of BasicTyping (which is 4). This fixes the off-by-one behavior where: - Basic (type in the answer) → Basic (optional reversed card) - Basic (and reversed card) → Basic (optional reversed card) - Basic (optional reversed card) → Basic (and reversed card) Fixes #4353 |
||
|---|---|---|
| .. | ||
| cardgen.rs | ||
| checks.rs | ||
| cloze_styling.css | ||
| emptycards.rs | ||
| fields.rs | ||
| header.tex | ||
| merge.rs | ||
| mod.rs | ||
| notetypechange.rs | ||
| render.rs | ||
| restore.rs | ||
| schema11.rs | ||
| schemachange.rs | ||
| service.rs | ||
| stock.rs | ||
| styling.css | ||
| templates.rs | ||
| undo.rs | ||