Skip to content

Commit 93254e2

Browse files
authored
Merge pull request #379 from FireChickenProductivity/stop-advertising-settings-register
Stop advertising settings register: Not part of public API, has performance implications
2 parents b4fa360 + f9772ce commit 93254e2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

docs/Customization/Talon Framework/settings.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,3 @@ ctx = Context()
4646

4747
ctx.settings["user.my_user_file_set_horizontal_position"] = 50
4848
```
49-
50-
It is also possible to register a callback function to be called whenever a setting changes. This is done by calling settings.register() with a setting name and a function to call. If the name string is blank (like in the example below) then the callback function will be called whenever any setting is changed. When the name is not blank the function will only be called when a setting with a matching name is changed.
51-
52-
`listener.py`
53-
54-
```python
55-
def settings_change_handler(*args):
56-
print("A setting has changed")
57-
58-
settings.register("", settings_change_handler)
59-
```

0 commit comments

Comments
 (0)