mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05: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
|
# move media
|
||||||
if oldMediaDir:
|
if oldMediaDir:
|
||||||
newDeck.renameMediaDir(oldMediaDir)
|
newDeck.renameMediaDir(oldMediaDir)
|
||||||
|
# forget sync name
|
||||||
|
newDeck.syncName = None
|
||||||
|
newDeck.s.commit()
|
||||||
# and return the new deck
|
# and return the new deck
|
||||||
return newDeck
|
return newDeck
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue