fix enabled by default logic

This commit is contained in:
Vendicated 2024-06-27 16:14:32 +02:00
parent 14e11973ef
commit 7c923b9962
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -129,7 +129,7 @@ export const SettingsStore = new SettingsStoreClass(settings, {
if (path === "plugins" && key in plugins)
return target[key] = {
enabled: IS_REPORTER ?? plugins[key].required ?? plugins[key].enabledByDefault ?? false
enabled: IS_REPORTER || plugins[key].required || plugins[key].enabledByDefault || false
};
// Since the property is not set, check if this is a plugin's setting and if so, try to resolve