Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2453 from forslund/doc/settings-changed-callback
Browse files Browse the repository at this point in the history
Add readthedocs docs for settings_change_callback
  • Loading branch information
krisgesling authored Jan 15, 2020
2 parents 307d8ce + 9563bff commit 1faedf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mycroft/skills/mycroft_skill/mycroft_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ def __init__(self, name=None, bus=None, use_settings=True):
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)
Expand Down

0 comments on commit 1faedf6

Please sign in to comment.