feat: Crash Handler (#531)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Nuckyz
2023-03-01 01:26:13 -03:00
committed by GitHub
parent c91b0df607
commit faa90eccd3
8 changed files with 182 additions and 27 deletions

View File

@ -92,7 +92,7 @@ function makeProxy(settings: any, root = settings, path = ""): Settings {
// Return empty for plugins with no settings
if (path === "plugins" && p in plugins)
return target[p] = makeProxy({
enabled: plugins[p].required ?? false
enabled: plugins[p].required ?? plugins[p].enabledByDefault ?? false
}, root, `plugins.${p}`);
// Since the property is not set, check if this is a plugin's setting and if so, try to resolve