mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
enhanced type check
This commit is contained in:
parent
1b07985680
commit
805964c5e5
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ class SettingObject:
|
|||
return
|
||||
|
||||
for valid_type in self.valid_value_types:
|
||||
if isinstance(value, valid_type):
|
||||
if type(value) is valid_type:
|
||||
return
|
||||
|
||||
key = getattr(self, "key", None)
|
||||
|
|
@ -281,7 +281,7 @@ class SettingObject:
|
|||
def is_modified(self):
|
||||
"""Has object any changes that require saving."""
|
||||
if self.any_parent_as_widget:
|
||||
return self._is_modified
|
||||
return self._is_modified or self.defaults_not_set
|
||||
|
||||
if self._is_modified or self.defaults_not_set:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue