mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Update progress after prepare_media() finishes
Otherwise the bulk of the import ends up being shown as "Checked: 0" in the progress window.
This commit is contained in:
parent
c4ebbd719c
commit
d645824098
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ impl<'a> Context<'a> {
|
|||
|
||||
fn import(&mut self) -> Result<NoteLog> {
|
||||
let mut media_map = self.prepare_media()?;
|
||||
(self.progress_fn)(ImportProgress::Collection)?;
|
||||
let note_imports = self.import_notes_and_notetypes(&mut media_map)?;
|
||||
let imported_decks = self.import_decks_and_configs()?;
|
||||
self.import_cards_and_revlog(¬e_imports.id_map, &imported_decks)?;
|
||||
|
|
Loading…
Reference in a new issue