关闭插件加载

This commit is contained in:
liuwei
2025-04-15 14:28:01 +08:00
parent 3d1f70b442
commit 24bafc4c20
2 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
# # 从当前包的main模块导入KidPhotoExtractorPlugin类 # 从当前包的main模块导入KidPhotoExtractorPlugin类
# from .main import KidPhotoExtractorPlugin from .main import KidPhotoExtractorPlugin
# # 提供get_plugin函数返回插件实例 # 提供get_plugin函数返回插件实例
# def get_plugin(): def get_plugin():
# """获取插件实例""" """获取插件实例"""
# return KidPhotoExtractorPlugin() return KidPhotoExtractorPlugin()

View File

@@ -414,7 +414,7 @@ class KidPhotoExtractorPlugin(MessagePluginInterface):
def start(self) -> bool: def start(self) -> bool:
"""启动插件""" """启动插件"""
if self.enable: if not self.enable:
self.LOG.info(f"[{self.name}] 插件已启动") self.LOG.info(f"[{self.name}] 插件已启动")
self.status = PluginStatus.RUNNING self.status = PluginStatus.RUNNING
return False return False