aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/settings.ts
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-11-01 01:49:41 +0100
committerGitHub <noreply@github.com>2022-11-01 01:49:41 +0100
commit04d6f341ee3122e36044739d533a69e4312dd116 (patch)
tree971e61d6ee490ec02a682b7d6fa68bb08cffe68a /src/plugins/settings.ts
parent0c25278c5923ff7fdc22730557da00601b8cf1d3 (diff)
downloadVencord-04d6f341ee3122e36044739d533a69e4312dd116.tar.gz
Vencord-04d6f341ee3122e36044739d533a69e4312dd116.tar.bz2
Vencord-04d6f341ee3122e36044739d533a69e4312dd116.zip
PatchHelper, a tool to help you write patches (#182)
Diffstat (limited to 'src/plugins/settings.ts')
-rw-r--r--src/plugins/settings.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/settings.ts b/src/plugins/settings.ts
index df27ca1..f8ef7d8 100644
--- a/src/plugins/settings.ts
+++ b/src/plugins/settings.ts
@@ -55,11 +55,13 @@ export default definePlugin({
match: /\{section:(.{1,2})\.ID\.HEADER,\s*label:(.{1,2})\..{1,2}\.Messages\.ACTIVITY_SETTINGS\}/,
replace: (m, mod) => {
const updater = !IS_WEB ? '{section:"VencordUpdater",label:"Updater",element:Vencord.Components.Updater},' : "";
+ const patchHelper = IS_DEV ? '{section:"VencordPatchHelper",label:"PatchHelper",element:Vencord.Components.PatchHelper},' : "";
return (
`{section:${mod}.ID.HEADER,label:"Vencord"},` +
'{section:"VencordSetting",label:"Vencord",element:Vencord.Components.Settings},' +
'{section:"VencordPlugins",label:"Plugins",element:Vencord.Components.PluginSettings},' +
updater +
+ patchHelper +
`{section:${mod}.ID.DIVIDER},${m}`
);
}