diff options
author | Vendicated <vendicated@riseup.net> | 2023-10-06 17:54:46 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-10-06 17:54:46 +0200 |
commit | 47a39a062e4437c3e18b1f5cb09f4abe82d0bb82 (patch) | |
tree | a8a6c033a7b196ae6c4d7a50b568583019ccc31a /src/plugins | |
parent | 9e63da6d786b36cc27c4a24791f44635ba1e0c23 (diff) | |
download | Vencord-47a39a062e4437c3e18b1f5cb09f4abe82d0bb82.tar.gz Vencord-47a39a062e4437c3e18b1f5cb09f4abe82d0bb82.tar.bz2 Vencord-47a39a062e4437c3e18b1f5cb09f4abe82d0bb82.zip |
Fix Vesktop SettingsCog context menu
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/_core/settings.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/_core/settings.tsx b/src/plugins/_core/settings.tsx index 88ebb57..f7fcdd0 100644 --- a/src/plugins/_core/settings.tsx +++ b/src/plugins/_core/settings.tsx @@ -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); } }); }); |