Reorder subgraph context menu items (#4870)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2025-08-10 07:20:26 +10:00
committed by GitHub
parent b1117b9838
commit ff5943f770
3 changed files with 7 additions and 5 deletions

View File

@@ -8235,14 +8235,16 @@ export class LGraphCanvas
'Both in put and output slots were null when processing context menu.'
)
if (!_slot.nameLocked && !('link' in _slot && _slot.widget)) {
menu_info.push({ content: 'Rename Slot', slot })
}
if (_slot.removable) {
menu_info.push(null)
menu_info.push(
_slot.locked ? 'Cannot remove' : { content: 'Remove Slot', slot }
)
}
if (!_slot.nameLocked && !('link' in _slot && _slot.widget)) {
menu_info.push({ content: 'Rename Slot', slot })
}
if (node.getExtraSlotMenuOptions) {
menu_info.push(...node.getExtraSlotMenuOptions(slot))

View File

@@ -264,4 +264,4 @@
"label": "切换工作流侧边栏",
"tooltip": "工作流"
}
}
}

View File

@@ -1648,4 +1648,4 @@
"exportWorkflow": "导出工作流",
"saveWorkflow": "保存工作流"
}
}
}