Skip to content

Commit

Permalink
add command bugfix #298
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed Aug 14, 2023
1 parent 78f2fe2 commit 4dec1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NodeGraphQt/base/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ def add_command(self, name, func=None, node_type=None, node_class=None):
for menu in node_menus:
menu.addAction(action)

qaction = node_menu.addAction(action)
command = NodeGraphCommand(self._graph, qaction, func)
node_menu.addAction(action)
command = NodeGraphCommand(self._graph, action, func)
self._commands[name] = command
self._items.append(command)
return command
Expand Down

0 comments on commit 4dec1b3

Please sign in to comment.