mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
use registered plugin name if available
This commit is contained in:
parent
d8772cca3f
commit
7b6761b9bf
1 changed files with 2 additions and 0 deletions
|
@ -1972,6 +1972,8 @@ it to your friends.
|
|||
for fname in all:
|
||||
enabled = fname.endswith(".py")
|
||||
p = re.sub("\.py(\.off)?", "", fname)
|
||||
if p+".py" in self.registeredPlugins:
|
||||
p = self.registeredPlugins[p+".py"]['name']
|
||||
a = QAction(p, self)
|
||||
a.setCheckable(True)
|
||||
a.setChecked(enabled)
|
||||
|
|
Loading…
Reference in a new issue