Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
5d5c3200
"...git@developer.sourcefind.cn:Wenxuan/LightX2V.git" did not exist on "8bc0da34b4d1ae737af9f4e3dd713e76a64de202"
Commit
5d5c3200
authored
Dec 01, 2023
by
comfyanonymous
Browse files
Fix right click not working for some users.
parent
c97be4db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
web/extensions/core/groupNode.js
web/extensions/core/groupNode.js
+2
-2
No files found.
web/extensions/core/groupNode.js
View file @
5d5c3200
...
@@ -1010,7 +1010,7 @@ function addConvertToGroupOptions() {
...
@@ -1010,7 +1010,7 @@ function addConvertToGroupOptions() {
const
getCanvasMenuOptions
=
LGraphCanvas
.
prototype
.
getCanvasMenuOptions
;
const
getCanvasMenuOptions
=
LGraphCanvas
.
prototype
.
getCanvasMenuOptions
;
LGraphCanvas
.
prototype
.
getCanvasMenuOptions
=
function
()
{
LGraphCanvas
.
prototype
.
getCanvasMenuOptions
=
function
()
{
const
options
=
getCanvasMenuOptions
.
apply
(
this
,
arguments
);
const
options
=
getCanvasMenuOptions
.
apply
(
this
,
arguments
);
const
index
=
options
.
findIndex
((
o
)
=>
o
?.
content
===
"
Add Group
"
)
+
1
||
opts
.
length
;
const
index
=
options
.
findIndex
((
o
)
=>
o
?.
content
===
"
Add Group
"
)
+
1
||
opt
ion
s
.
length
;
addOption
(
options
,
index
);
addOption
(
options
,
index
);
return
options
;
return
options
;
};
};
...
@@ -1020,7 +1020,7 @@ function addConvertToGroupOptions() {
...
@@ -1020,7 +1020,7 @@ function addConvertToGroupOptions() {
LGraphCanvas
.
prototype
.
getNodeMenuOptions
=
function
(
node
)
{
LGraphCanvas
.
prototype
.
getNodeMenuOptions
=
function
(
node
)
{
const
options
=
getNodeMenuOptions
.
apply
(
this
,
arguments
);
const
options
=
getNodeMenuOptions
.
apply
(
this
,
arguments
);
if
(
!
GroupNodeHandler
.
isGroupNode
(
node
))
{
if
(
!
GroupNodeHandler
.
isGroupNode
(
node
))
{
const
index
=
options
.
findIndex
((
o
)
=>
o
?.
content
===
"
Outputs
"
)
+
1
||
opts
.
length
-
1
;
const
index
=
options
.
findIndex
((
o
)
=>
o
?.
content
===
"
Outputs
"
)
+
1
||
opt
ion
s
.
length
-
1
;
addOption
(
options
,
index
);
addOption
(
options
,
index
);
}
}
return
options
;
return
options
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment