mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
since we may bump mod time when setting up media, do it after sync
This commit is contained in:
parent
405a28e090
commit
0e557e0389
1 changed files with 2 additions and 2 deletions
|
@ -745,12 +745,12 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
||||||
return 0
|
return 0
|
||||||
if uprecent:
|
if uprecent:
|
||||||
self.updateRecentFiles(self.deck.path)
|
self.updateRecentFiles(self.deck.path)
|
||||||
if interactive:
|
|
||||||
self.setupMedia(self.deck)
|
|
||||||
if (sync and self.config['syncOnLoad']
|
if (sync and self.config['syncOnLoad']
|
||||||
and self.deck.syncName):
|
and self.deck.syncName):
|
||||||
if self.syncDeck(interactive=False):
|
if self.syncDeck(interactive=False):
|
||||||
return True
|
return True
|
||||||
|
if interactive:
|
||||||
|
self.setupMedia(self.deck)
|
||||||
try:
|
try:
|
||||||
self.deck.initUndo()
|
self.deck.initUndo()
|
||||||
self.moveToState("initial")
|
self.moveToState("initial")
|
||||||
|
|
Loading…
Reference in a new issue