Skip to content

Commit

Permalink
use addAll
Browse files Browse the repository at this point in the history
  • Loading branch information
xxfttkx committed Jan 13, 2025
1 parent 11bbad6 commit 057b6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/plugins_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abstract class _PluginsController with Store {
final pluginsFile = File('${pluginDirectory!.path}/$pluginsFileName');
if (await pluginsFile.exists()) {
final jsonString = await pluginsFile.readAsString();
pluginList = ObservableList.of(getPluginListFromJson(jsonString));
pluginList.addAll(getPluginListFromJson(jsonString));
KazumiLogger().log(Level.info, '当前插件数量 ${pluginList.length}');
} else {
// No plugins.json
Expand Down

0 comments on commit 057b6fd

Please sign in to comment.