diff options
author | AutumnVN <autumnvnchino@gmail.com> | 2023-09-06 23:51:18 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 18:51:18 +0200 |
commit | a4cadc03d861f785c6624d7684a3790547a315af (patch) | |
tree | 1efec15710eab55063820df1e01d0a4111a4b915 /src/plugins/viewRaw.tsx | |
parent | 315fcf1972760231cdfa96c30c40035d2c1c7583 (diff) | |
download | Vencord-a4cadc03d861f785c6624d7684a3790547a315af.tar.gz Vencord-a4cadc03d861f785c6624d7684a3790547a315af.tar.bz2 Vencord-a4cadc03d861f785c6624d7684a3790547a315af.zip |
viewRaw: dont add context menu to guild folders (#1708)
Diffstat (limited to 'src/plugins/viewRaw.tsx')
-rw-r--r-- | src/plugins/viewRaw.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/viewRaw.tsx b/src/plugins/viewRaw.tsx index d9d1a44..6614ea8 100644 --- a/src/plugins/viewRaw.tsx +++ b/src/plugins/viewRaw.tsx @@ -119,6 +119,7 @@ const settings = definePluginSettings({ function MakeContextCallback(name: string) { const callback: NavContextMenuPatchCallback = (children, props) => () => { + if (name === "Guild" && !props.guild) return; const lastChild = children.at(-1); if (lastChild?.key === "developer-actions") { const p = lastChild.props; |