mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
PathInput will strip passed string
This commit is contained in:
parent
44505cce97
commit
a2475ff051
1 changed files with 11 additions and 0 deletions
|
|
@ -469,6 +469,17 @@ class PathInput(InputEntity):
|
|||
# GUI attributes
|
||||
self.placeholder_text = self.schema_data.get("placeholder")
|
||||
|
||||
def set(self, value):
|
||||
# Strip value
|
||||
super(PathInput, self).set(value.strip())
|
||||
|
||||
def set_override_state(self, state, ignore_missing_defaults):
|
||||
super(PathInput, self).set_override_state(
|
||||
state, ignore_missing_defaults
|
||||
)
|
||||
# Strip current value
|
||||
self._current_value = self._current_value.strip()
|
||||
|
||||
|
||||
class RawJsonEntity(InputEntity):
|
||||
schema_types = ["raw-json"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue