Skip to content

Commit 34d85ba

Browse files
Fix UserControl _build() call (#52)
1 parent 2f53942 commit 34d85ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/python/flet/control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ def build_update_commands(self, index, added_controls, commands, isolated=False)
333333
for h in current_ints[b1:b2]:
334334
# add
335335
ctrl = hashes[h]
336-
ctrl._build()
337336
innerCmds = ctrl.get_cmd_str(
338337
index=index, added_controls=added_controls
339338
)
@@ -351,7 +350,6 @@ def build_update_commands(self, index, added_controls, commands, isolated=False)
351350
# add
352351
for h in current_ints[b1:b2]:
353352
ctrl = hashes[h]
354-
ctrl._build()
355353
innerCmds = ctrl.get_cmd_str(
356354
index=index, added_controls=added_controls
357355
)
@@ -380,6 +378,8 @@ def _remove_control_recursively(self, index, control):
380378
# private methods
381379
def get_cmd_str(self, indent=0, index=None, added_controls=None):
382380

381+
self._build()
382+
383383
# remove control from index
384384
if self.__uid and index != None and self.__uid in index:
385385
del index[self.__uid]

0 commit comments

Comments
 (0)