Fix Vesktop SettingsCog context menu
This commit is contained in:
parent
9e63da6d78
commit
47a39a062e
1 changed files with 3 additions and 2 deletions
|
@ -39,8 +39,9 @@ export default definePlugin({
|
||||||
addContextMenuPatch("user-settings-cog", children => () => {
|
addContextMenuPatch("user-settings-cog", children => () => {
|
||||||
const section = children.find(c => Array.isArray(c) && c.some(it => it?.props?.id === "VencordSettings")) as any;
|
const section = children.find(c => Array.isArray(c) && c.some(it => it?.props?.id === "VencordSettings")) as any;
|
||||||
section?.forEach(c => {
|
section?.forEach(c => {
|
||||||
if (c?.props?.id?.startsWith("Vencord")) {
|
const id = c?.props?.id;
|
||||||
c.props.action = () => SettingsRouter.open(c.props.id);
|
if (id?.startsWith("Vencord") || id?.startsWith("Vesktop")) {
|
||||||
|
c.props.action = () => SettingsRouter.open(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue