core: drop system/setting-loaded event

This commit is contained in:
undefined committed 2026-10-13 11:03:31 +00:00
1 parent 48c358c29c
commit 54ae550586
5 files changed
+44 -34

No files matched your search

+1 -1
View File
@@ -297,7 +297,7 @@ export async function apply(ctx: Context) {
},
]);
});
ctx.inject(['vjudge'], async (c) => {
ctx.inject(['vjudge', 'model:setting'], async (c) => {
for (const [k, v] of Object.entries(providers)) {
if (!SystemModel.get(`vjudge.builtin-${k}-disable`)) c.vjudge.addProvider(k, v);
}