mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
add first row to list and modifiable dictionary by default
This commit is contained in:
parent
69dbfd2faf
commit
7efc99b5ef
1 changed files with 4 additions and 0 deletions
|
|
@ -982,6 +982,8 @@ class ListWidget(QtWidgets.QWidget, InputObject):
|
|||
self.inputs_widget = inputs_widget
|
||||
self.inputs_layout = inputs_layout
|
||||
|
||||
self.add_row(is_empty=True)
|
||||
|
||||
def count(self):
|
||||
return len(self.input_fields)
|
||||
|
||||
|
|
@ -1311,6 +1313,8 @@ class ModifiableDict(QtWidgets.QWidget, InputObject):
|
|||
self.default_value = input_data.get("default", NOT_SET)
|
||||
self.input_modifiers = input_data.get("input_modifiers") or {}
|
||||
|
||||
self.add_row(is_empty=True)
|
||||
|
||||
def count(self):
|
||||
return len(self.input_fields)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue