remove obsolete forceMediaDir option

This commit is contained in:
Damien Elmes 2010-12-09 12:28:01 +09:00
parent fbb1db8323
commit e2644695cb

View file

@ -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']