viewRaw: dont add context menu to guild folders (#1708)
This commit is contained in:
parent
315fcf1972
commit
a4cadc03d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user