Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/lib/litegraph/src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@
"label": "切换工作流侧边栏",
"tooltip": "工作流"
}
}
}
2 changes: 1 addition & 1 deletion src/locales/zh/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1648,4 +1648,4 @@
"exportWorkflow": "导出工作流",
"saveWorkflow": "保存工作流"
}
}
}