Fix total note count not being logged in apkg import

https://forums.ankiweb.net/t/2-1-65-conflicting-import-message-when-importing-decks-with-v1-scheduler/31352/3
This commit is contained in:
Damien Elmes 2023-06-21 21:04:19 +10:00
parent ba6325b47f
commit 7619891d4f

View file

@ -167,7 +167,7 @@ impl<'n> NoteContext<'n> {
progress: &mut ThrottlingProgressHandler<ImportProgress>,
) -> Result<()> {
let mut incrementor = progress.incrementor(ImportProgress::Notes);
self.imports.log.found_notes = notes.len() as u32;
for mut note in notes {
incrementor.increment()?;
let remapped_notetype_id = self.remapped_notetypes.get(&note.notetype_id);