mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
core: drop system/setting-loaded event
This commit is contained in:
1 parent
48c358c29c
commit
54ae550586
5 files changed
+44
-34
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user