registry: Explain why Value.set sets self._wasSet.

This commit is contained in:
Valentin Lorentz 2020-05-15 23:55:56 +02:00
parent eead5566e5
commit 7e7a7bf936
1 changed files with 3 additions and 0 deletions

View File

@ -442,6 +442,9 @@ class Value(Group):
"""Override this with a function to convert a string to whatever type
you want, and call self.setValue to set the value."""
self.setValue(s)
# redundant as setValue() already sets it, but it avoids really hard
# bugs if subclasses mess with _setValue.
self._wasSet = True
def setValue(self, v):