Skip to content

Commit f450aab

Browse files
Make sure name is actually edited
I think... I have not tested this code (I wrote it on my phone on github).
1 parent 08cc8cc commit f450aab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.py

+6
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,11 @@ def updatePosition(value, column):
12281228
obj.pos = tuple(pos)
12291229

12301230
self.updateObject(obj)
1231+
1232+
def updateObjectName(name):
1233+
obj.name = name
1234+
self.updateObject(obj)
1235+
self.updateObjectSelector()
12311236

12321237
sizes : list[int] = []
12331238

@@ -1240,6 +1245,7 @@ def updatePosition(value, column):
12401245
'text',
12411246
label_editable = False,
12421247
show_button = False,
1248+
entry_callback = lambda value, col : updateObjectName(value),
12431249
row=0,
12441250
)
12451251
sizes.append(self.objectProperties['name']['size'])

0 commit comments

Comments
 (0)