Merge pull request #2453 from forslund/doc/settings-changed-callback

Add readthedocs docs for settings_change_callback
pull/2415/head
Kris Gesling 2020-01-15 19:41:28 +09:30 committed by GitHub
commit 1faedf6052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,10 @@ class MycroftSkill:
self._initial_settings = deepcopy(self.settings.as_dict())
else:
self.settings = None
#: Set to register a callback method that will be called every time
#: the skills settings are updated. The referenced method should
#: include any logic needed to handle the updated settings.
self.settings_change_callback = None
self.gui = SkillGUI(self)