mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
forget sync name on saveas
This commit is contained in:
parent
095a7dbb6f
commit
295bacacd8
1 changed files with 3 additions and 0 deletions
|
@ -2296,6 +2296,9 @@ Return new path, relative to media dir."""
|
|||
# move media
|
||||
if oldMediaDir:
|
||||
newDeck.renameMediaDir(oldMediaDir)
|
||||
# forget sync name
|
||||
newDeck.syncName = None
|
||||
newDeck.s.commit()
|
||||
# and return the new deck
|
||||
return newDeck
|
||||
|
||||
|
|
Loading…
Reference in a new issue