mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
remove obsolete forceMediaDir option
This commit is contained in:
parent
fbb1db8323
commit
e2644695cb
1 changed files with 1 additions and 4 deletions
|
|
@ -716,8 +716,7 @@ counts are %d %d %d
|
||||||
anki.deck.backupDir = os.path.join(
|
anki.deck.backupDir = os.path.join(
|
||||||
self.config.configPath, "backups")
|
self.config.configPath, "backups")
|
||||||
|
|
||||||
def loadDeck(self, deckPath, sync=True, interactive=True, uprecent=True,
|
def loadDeck(self, deckPath, sync=True, interactive=True, uprecent=True):
|
||||||
media=None):
|
|
||||||
"Load a deck and update the user interface. Maybe sync."
|
"Load a deck and update the user interface. Maybe sync."
|
||||||
self.reviewingStarted = False
|
self.reviewingStarted = False
|
||||||
# return True on success
|
# return True on success
|
||||||
|
|
@ -744,8 +743,6 @@ File is corrupt or not an Anki database. Click help for more info.\n
|
||||||
Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
||||||
self.moveToState("noDeck")
|
self.moveToState("noDeck")
|
||||||
return 0
|
return 0
|
||||||
if media is not None:
|
|
||||||
self.deck.forceMediaDir = media
|
|
||||||
if uprecent:
|
if uprecent:
|
||||||
self.updateRecentFiles(self.deck.path)
|
self.updateRecentFiles(self.deck.path)
|
||||||
if (sync and self.config['syncOnLoad']
|
if (sync and self.config['syncOnLoad']
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue