mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
fixed text list items
This commit is contained in:
parent
ae30e3c3be
commit
b8ea2eea3a
1 changed files with 4 additions and 3 deletions
|
|
@ -977,12 +977,13 @@ class TextListSubWidget(QtWidgets.QWidget, ConfigObject):
|
|||
self.override_value = NOT_SET
|
||||
|
||||
def set_value(self, value, *, global_value=False):
|
||||
for input_field in self.input_fields:
|
||||
self.remove_row(input_field)
|
||||
|
||||
previous_inputs = tuple(self.input_fields)
|
||||
for item_text in value:
|
||||
self.add_row(text=item_text)
|
||||
|
||||
for input_field in previous_inputs:
|
||||
self.remove_row(input_field)
|
||||
|
||||
if global_value:
|
||||
self.global_value = value
|
||||
self.start_value = self.item_value()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue