fix(plugins): only load core plugins for pyon plugins manager
This commit is contained in:
parent
32348ba264
commit
fc1ca2086d
2 changed files with 8 additions and 9 deletions
|
|
@ -10,7 +10,7 @@ import { removeFile, writeFile } from "@lib/api/native/fs";
|
|||
import { isPyonLoader, isThemeSupported } from "@lib/api/native/loader";
|
||||
import { FileManager } from "@lib/api/native/modules";
|
||||
import { updateFonts } from "@lib/fonts";
|
||||
import { checkAndRegisterUpdates, initPlugins } from "@lib/plugins";
|
||||
import { initPlugins } from "@lib/plugins";
|
||||
import { initThemes, patchChatBackground } from "@lib/themes";
|
||||
import { logger } from "@lib/utils/logger";
|
||||
import initSafeMode from "@ui/safeMode";
|
||||
|
|
@ -46,8 +46,7 @@ export default async () => {
|
|||
initFetchI18nStrings(),
|
||||
initSettings(),
|
||||
initFixes(),
|
||||
initSafeMode(),
|
||||
checkAndRegisterUpdates()
|
||||
initSafeMode()
|
||||
]).then(
|
||||
// Push them all to unloader
|
||||
u => u.forEach(f => f && lib.unload.push(f))
|
||||
|
|
|
|||
|
|
@ -367,12 +367,12 @@ export async function checkAndRegisterUpdates() {
|
|||
corePluginInstances.set(id, instance);
|
||||
}
|
||||
|
||||
await updateRepository(OFFICIAL_PLUGINS_REPO_URL);
|
||||
await Promise.allSettled(Object.keys(pluginRepositories).map(async repo => {
|
||||
if (repo !== OFFICIAL_PLUGINS_REPO_URL) {
|
||||
await updateRepository(repo);
|
||||
}
|
||||
}));
|
||||
// await updateRepository(OFFICIAL_PLUGINS_REPO_URL);
|
||||
// await Promise.allSettled(Object.keys(pluginRepositories).map(async repo => {
|
||||
// if (repo !== OFFICIAL_PLUGINS_REPO_URL) {
|
||||
// await updateRepository(repo);
|
||||
// }
|
||||
// }));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue