fix bug
This commit is contained in:
parent
798a737f06
commit
6d4b4c6ba7
@ -216,7 +216,7 @@ class PluginManager(metaclass=Singleton):
|
||||
# ID
|
||||
conf.update({"id": pid})
|
||||
# 安装状态
|
||||
if pid in installed_apps:
|
||||
if pid in installed_apps and plugin_static:
|
||||
conf.update({"installed": True})
|
||||
else:
|
||||
conf.update({"installed": False})
|
||||
|
@ -18,8 +18,8 @@ class ModuleHelper:
|
||||
"""
|
||||
|
||||
submodules: list = []
|
||||
importlib.invalidate_caches()
|
||||
packages = importlib.import_module(package_path)
|
||||
importlib.reload(packages)
|
||||
for importer, package_name, _ in pkgutil.iter_modules(packages.__path__):
|
||||
try:
|
||||
if package_name.startswith('_'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user