mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
open libanki with progress handler
This commit is contained in:
parent
ac5839b3e8
commit
ecd9ffe2b9
1 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ new:
|
|||
self.moveToState("noDeck")
|
||||
return
|
||||
try:
|
||||
self.deck = DeckStorage.Deck(deckPath)
|
||||
self.deck = DeckStorage.Deck(deckPath, progress=True)
|
||||
except Exception, e:
|
||||
if hasattr(e, 'data') and e.data.get('type') == 'inuse':
|
||||
if interactive:
|
||||
|
@ -1066,7 +1066,7 @@ your deck."""))
|
|||
toRemove.append(d)
|
||||
continue
|
||||
try:
|
||||
deck = DeckStorage.Deck(d, backup=False)
|
||||
deck = DeckStorage.Deck(d, backup=False, progress=True)
|
||||
self.browserDecks.append({
|
||||
'path': d,
|
||||
'name': deck.name(),
|
||||
|
|
Loading…
Reference in a new issue