fix: load core plugins
This commit is contained in:
parent
ad6524772b
commit
ed52f332da
2 changed files with 4 additions and 10 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 { initPlugins } from "@lib/plugins";
|
||||
import { initPlugins, registerCorePlugins } from "@lib/plugins";
|
||||
import { initThemes, patchChatBackground } from "@lib/themes";
|
||||
import { logger } from "@lib/utils/logger";
|
||||
import initSafeMode from "@ui/safeMode";
|
||||
|
|
@ -46,7 +46,8 @@ export default async () => {
|
|||
initFetchI18nStrings(),
|
||||
initSettings(),
|
||||
initFixes(),
|
||||
initSafeMode()
|
||||
initSafeMode(),
|
||||
registerCorePlugins()
|
||||
]).then(
|
||||
// Push them all to unloader
|
||||
u => u.forEach(f => f && lib.unload.push(f))
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ export function stopPlugin(id: string) {
|
|||
pluginInstances.delete(id);
|
||||
}
|
||||
|
||||
export async function checkAndRegisterUpdates() {
|
||||
export async function registerCorePlugins() {
|
||||
await awaitStorage(pluginRepositories, pluginSettings);
|
||||
|
||||
const corePlugins = getCorePlugins();
|
||||
|
|
@ -366,13 +366,6 @@ export async function checkAndRegisterUpdates() {
|
|||
manifestToId.set(instance.manifest, id);
|
||||
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);
|
||||
// }
|
||||
// }));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue