mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
basic logic of key is valid in dict item
This commit is contained in:
parent
a7d6eabe32
commit
51b4bc4e7d
1 changed files with 6 additions and 0 deletions
|
|
@ -1213,7 +1213,13 @@ class ModifiableDictItem(QtWidgets.QWidget, ConfigObject):
|
|||
def key_value(self):
|
||||
return self.key_input.text()
|
||||
|
||||
def is_key_valid(self):
|
||||
if self.key_value() == "":
|
||||
return False
|
||||
|
||||
if self.is_key_duplicated:
|
||||
return False
|
||||
return True
|
||||
|
||||
def _on_value_change(self, item=None):
|
||||
self.update_style()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue