logic-node-editor icon indicating copy to clipboard operation
logic-node-editor copied to clipboard

exception when canceling save

Open hannesdelbeke opened this issue 9 months ago • 1 comments

if you open the example. and go to File>Save and then cancel the filebrowser dialog. you get the following exception

Traceback (most recent call last):
  File "C:\Users\hanne\OneDrive\Documents\repos\python-node-editor\main.py", line 91, in save_project
    self.node_widget.save_project(file_path)
  File "C:\Users\hanne\OneDrive\Documents\repos\python-node-editor\node_editor\gui\node_widget.py", line 121, in save_project
    nodes = item.nodes()
  File "C:\Users\hanne\OneDrive\Documents\repos\python-node-editor\node_editor\connection.py", line 37, in nodes
    return (self.start_pin.node(), self.end_pin.node())
TypeError: 'Button_Node' object is not callable

hannesdelbeke avatar Sep 25 '23 15:09 hannesdelbeke