mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 14:40:34 +00:00
Merge branch 'dev' of https://github.com/Vendicated/Vencord into discord-types
This commit is contained in:
commit
242367f78c
2 changed files with 12 additions and 1 deletions
|
@ -183,7 +183,7 @@ export default definePlugin({
|
|||
patchedSettings: new WeakSet(),
|
||||
|
||||
addSettings(elements: any[], element: { header?: string; settings: string[]; }, sectionTypes: SectionTypes) {
|
||||
if (this.patchedSettings.has(elements) || !this.isRightSpot(element)) return;
|
||||
if (this.patchedSettings.has(elements)) return;
|
||||
|
||||
this.patchedSettings.add(elements);
|
||||
|
||||
|
|
|
@ -42,7 +42,18 @@ const subscribedFluxEventsPlugins = new Set<string>();
|
|||
const pluginsValues = Object.values(Plugins);
|
||||
const settings = Settings.plugins;
|
||||
|
||||
const forceDisabled = new Set([
|
||||
"MessageLogger",
|
||||
"ShowHiddenChannels",
|
||||
"MoreUserTags",
|
||||
"Decor",
|
||||
"IgnoreActivities",
|
||||
"NoBlockedMessages",
|
||||
"BetterFolders",
|
||||
"NoPendingCount"
|
||||
]);
|
||||
export function isPluginEnabled(pluginName: string) {
|
||||
if (forceDisabled.has(pluginName)) return false;
|
||||
return (
|
||||
Plugins[pluginName]?.required ||
|
||||
Plugins[pluginName]?.isDependency ||
|
||||
|
|
Loading…
Reference in a new issue