diff --git a/aqt/plugins.py b/aqt/addons.py similarity index 98% rename from aqt/plugins.py rename to aqt/addons.py index a9564b1b0..492c64205 100644 --- a/aqt/plugins.py +++ b/aqt/addons.py @@ -8,7 +8,7 @@ from PyQt4.QtGui import * from aqt.utils import showInfo, showWarning, openFolder, isWin from anki.hooks import runHook -class PluginManager(object): +class AddonManager(object): def __init__(self, mw): self.mw = mw @@ -45,7 +45,7 @@ class PluginManager(object): dir = self.mw.config.confDir if isWin: dir = dir.encode(sys.getfilesystemencoding()) - return os.path.join(dir, "plugins") + return os.path.join(dir, "addons") def clearPluginCache(self): "Clear .pyc files which may cause crashes if Python version updated." diff --git a/aqt/config.py b/aqt/config.py index 71ccb9fca..40183cb67 100644 --- a/aqt/config.py +++ b/aqt/config.py @@ -142,7 +142,7 @@ create table if not exists config (conf text not null); def _addAnkiDirs(self): base = self.confDir for x in (base, - os.path.join(base, "plugins"), + os.path.join(base, "addons"), os.path.join(base, "backups")): try: os.mkdir(x) diff --git a/aqt/main.py b/aqt/main.py index 7fc9cdb23..97033cd33 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -41,7 +41,7 @@ class AnkiQt(QMainWindow): self.setup() splash.update() # load plugins - self.setupPlugins() + self.setupAddons() splash.update() # show main window splash.finish(self) @@ -254,9 +254,9 @@ title="%s">%s''' % ( if self.appUpdated: self.config['version'] = aqt.appVersion - def setupPlugins(self): - import aqt.plugins - self.pluginManager = aqt.plugins.PluginManager(self) + def setupAddons(self): + import aqt.addons + self.addonManager = aqt.addons.AddonManager(self) def setupThreads(self): self._mainThread = QThread.currentThread() diff --git a/designer/main.ui b/designer/main.ui index 4376b0d63..9c5fa0575 100644 --- a/designer/main.ui +++ b/designer/main.ui @@ -71,23 +71,11 @@ &File - - - &Download - - - - :/icons/document-open-remote.png:/icons/document-open-remote.png - - - - - - - + + @@ -141,6 +129,7 @@ + @@ -565,7 +554,7 @@ :/icons/document-open-remote.png:/icons/document-open-remote.png - Personal Deck... + Open Synced... AnkiWeb @@ -580,7 +569,7 @@ :/icons/download.png:/icons/download.png - Shared Deck... + Open Shared... Download @@ -591,7 +580,7 @@ - Shared Plugin... + Download Shared... Download a plugin to add new features or change Anki's behaviour