fix: missing break

This commit is contained in:
RockChinQ 2024-09-26 11:23:37 +08:00
parent fdba470e9a
commit e8da26cb8a
No known key found for this signature in database
GPG Key ID: 8AC0BEFE1743A015
2 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,8 @@ class PluginManager:
# 按优先级倒序 # 按优先级倒序
self.plugins.sort(key=lambda x: x.priority, reverse=True) self.plugins.sort(key=lambda x: x.priority, reverse=True)
self.ap.logger.debug(f'优先级排序后的插件列表 {self.plugins}')
async def initialize_plugins(self): async def initialize_plugins(self):
for plugin in self.plugins: for plugin in self.plugins:
try: try:

View File

@ -45,6 +45,7 @@ class SettingManager:
for plugin_container in plugin_containers: for plugin_container in plugin_containers:
if plugin_container.plugin_name == value['name']: if plugin_container.plugin_name == value['name']:
plugin_container.set_from_setting_dict(value) plugin_container.set_from_setting_dict(value)
break
self.settings.data = { self.settings.data = {
'plugins': [ 'plugins': [