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