Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e77b7014e6 | |||
| d57fd0f827 | |||
| 6a83d2a62a |
@@ -123,7 +123,7 @@ class PluginManager():
|
||||
return p
|
||||
|
||||
def uninstall_plugin(self, plugin_name: str):
|
||||
plugin = self.get_registered_plugin(plugin_name, self.context.cached_plugins)
|
||||
plugin = self.get_registered_plugin(plugin_name)
|
||||
if not plugin:
|
||||
raise Exception("插件不存在。")
|
||||
root_dir_name = plugin.root_dir_name
|
||||
@@ -133,7 +133,7 @@ class PluginManager():
|
||||
raise Exception("移除插件成功,但是删除插件文件夹失败。您可以手动删除该文件夹,位于 addons/plugins/ 下。")
|
||||
|
||||
def update_plugin(self, plugin_name: str):
|
||||
plugin = self.get_registered_plugin(plugin_name, self.context.cached_plugins)
|
||||
plugin = self.get_registered_plugin(plugin_name)
|
||||
if not plugin:
|
||||
raise Exception("插件不存在。")
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
VERSION = '3.3.4'
|
||||
VERSION = '3.3.5'
|
||||
+8
-1
@@ -36,7 +36,14 @@ class MetricUploader():
|
||||
|
||||
for plugin in context.cached_plugins:
|
||||
self.plugin_stats[plugin.metadata.plugin_name] = {
|
||||
"metadata": plugin.metadata
|
||||
"metadata": {
|
||||
"plugin_name": plugin.metadata.plugin_name,
|
||||
"plugin_type": plugin.metadata.plugin_type.value,
|
||||
"author": plugin.metadata.author,
|
||||
"desc": plugin.metadata.desc,
|
||||
"version": plugin.metadata.version,
|
||||
"repo": plugin.metadata.repo,
|
||||
}
|
||||
}
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user