Fix Vesktop SettingsCog context menu

This commit is contained in:
Vendicated 2023-10-06 17:54:46 +02:00
parent 9e63da6d78
commit 47a39a062e
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

View File

@ -39,8 +39,9 @@ export default definePlugin({
addContextMenuPatch("user-settings-cog", children => () => {
const section = children.find(c => Array.isArray(c) && c.some(it => it?.props?.id === "VencordSettings")) as any;
section?.forEach(c => {
if (c?.props?.id?.startsWith("Vencord")) {
c.props.action = () => SettingsRouter.open(c.props.id);
const id = c?.props?.id;
if (id?.startsWith("Vencord") || id?.startsWith("Vesktop")) {
c.props.action = () => SettingsRouter.open(id);
}
});
});