Skip to content

Commit

Permalink
Make sure name is actually edited
Browse files Browse the repository at this point in the history
I think... I have not tested this code (I wrote it on my phone on github).
  • Loading branch information
ego-lay-atman-bay authored Jul 6, 2024
1 parent 08cc8cc commit f450aab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,11 @@ def updatePosition(value, column):
obj.pos = tuple(pos)

self.updateObject(obj)

def updateObjectName(name):
obj.name = name
self.updateObject(obj)
self.updateObjectSelector()

sizes : list[int] = []

Expand All @@ -1240,6 +1245,7 @@ def updatePosition(value, column):
'text',
label_editable = False,
show_button = False,
entry_callback = lambda value, col : updateObjectName(value),
row=0,
)
sizes.append(self.objectProperties['name']['size'])
Expand Down

0 comments on commit f450aab

Please sign in to comment.