mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -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 |
||
|---|---|---|
| .. | ||
| benches | ||
| i18n | ||
| io | ||
| linkchecker | ||
| process | ||
| proto | ||
| proto_gen | ||
| src | ||
| sync | ||
| tests/support | ||
| .gitignore | ||
| bench.sh | ||
| build.rs | ||
| Cargo.toml | ||
| README.md | ||
| rust_interface.rs | ||
Anki's Rust code.