Fix Plugin Reporting false dependency errors and other stuff (#1017)
This commit is contained in:
parent
a73858d131
commit
08d88b326d
@ -130,7 +130,7 @@ async function printReport() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Discord Errors",
|
title: "Discord Errors",
|
||||||
description: toCodeBlock(report.otherErrors.join("\n")),
|
description: report.otherErrors.length ? toCodeBlock(report.otherErrors.join("\n")) : "None",
|
||||||
color: report.otherErrors.length ? 0xff0000 : 0x00ff00
|
color: report.otherErrors.length ? 0xff0000 : 0x00ff00
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -233,7 +233,7 @@ function runTime(token: string) {
|
|||||||
// Needs native server to run
|
// Needs native server to run
|
||||||
if (p.name === "WebRichPresence (arRPC)") return;
|
if (p.name === "WebRichPresence (arRPC)") return;
|
||||||
|
|
||||||
p.required = true;
|
Vencord.Settings.plugins[p.name].enabled = true;
|
||||||
p.patches?.forEach(patch => {
|
p.patches?.forEach(patch => {
|
||||||
patch.plugin = p.name;
|
patch.plugin = p.name;
|
||||||
delete patch.predicate;
|
delete patch.predicate;
|
||||||
|
@ -99,9 +99,9 @@ export function startDependenciesRecursive(p: Plugin) {
|
|||||||
if (!Settings.plugins[dep].enabled) {
|
if (!Settings.plugins[dep].enabled) {
|
||||||
startDependenciesRecursive(Plugins[dep]);
|
startDependenciesRecursive(Plugins[dep]);
|
||||||
// If the plugin has patches, don't start the plugin, just enable it.
|
// If the plugin has patches, don't start the plugin, just enable it.
|
||||||
|
Settings.plugins[dep].enabled = true;
|
||||||
if (Plugins[dep].patches) {
|
if (Plugins[dep].patches) {
|
||||||
logger.warn(`Enabling dependency ${dep} requires restart.`);
|
logger.warn(`Enabling dependency ${dep} requires restart.`);
|
||||||
Settings.plugins[dep].enabled = true;
|
|
||||||
restartNeeded = true;
|
restartNeeded = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user