From e2644695cbe9eeca8b40db4b9f6ae2a7dd4bf426 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 9 Dec 2010 12:28:01 +0900 Subject: [PATCH] remove obsolete forceMediaDir option --- ankiqt/ui/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index bfe144213..194cd313f 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -716,8 +716,7 @@ counts are %d %d %d anki.deck.backupDir = os.path.join( self.config.configPath, "backups") - def loadDeck(self, deckPath, sync=True, interactive=True, uprecent=True, - media=None): + def loadDeck(self, deckPath, sync=True, interactive=True, uprecent=True): "Load a deck and update the user interface. Maybe sync." self.reviewingStarted = False # 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") self.moveToState("noDeck") return 0 - if media is not None: - self.deck.forceMediaDir = media if uprecent: self.updateRecentFiles(self.deck.path) if (sync and self.config['syncOnLoad']