Skip to content
Snippets Groups Projects
Commit 5998b5ed authored by dos's avatar dos Committed by dos
Browse files

py,st3m: settings: Use set_value in UnaryTunable's .load()

This lets the listeners be notified of changed value.
parent 43798847
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ class UnaryTunable(Tunable): ...@@ -132,7 +132,7 @@ class UnaryTunable(Tunable):
k = path[-1] k = path[-1]
d = reduce(_get, path[:-1], d) d = reduce(_get, path[:-1], d)
if k in d: if k in d:
self.value = d[k] self.set_value(d[k])
else: else:
self.set_value(self._default) self.set_value(self._default)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment