Skip to content

Commit

Permalink
debug...
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 14, 2024
1 parent 179e50b commit 58fd684
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def _startup(self, bus: MessageBusClient, skill_id: str = ""):
self.load_data_files()
self._register_skill_json()
self._register_decorated()
self._register_app_launcher()
#self._register_app_launcher()
self.register_resting_screen()

self.status.set_started()
Expand Down Expand Up @@ -850,9 +850,6 @@ def _register_skill_json(self, root_directory: Optional[str] = None):
{"skill_id": self.skill_id, "utterances": utts, "lang": lang}))

def _register_app_launcher(self):
# homescreen might load after this skill and miss the original events
self.add_event("homescreen.metadata.get", self.handle_homescreen_loaded)

# register app launcher if registered via decorator
for attr_name in get_non_properties(self):
method = getattr(self, attr_name)
Expand Down Expand Up @@ -1131,6 +1128,9 @@ def _register_system_event_handlers(self):
self.add_event(f"{self.skill_id}.converse.get_response", self.__handle_get_response,
speak_errors=False)

# homescreen might load after this skill and miss the original events
self.add_event("homescreen.metadata.get", self.handle_homescreen_loaded)

def _send_public_api(self, message: Message):
"""
Respond with the skill's public api.
Expand Down Expand Up @@ -1514,7 +1514,7 @@ def register_regex(self, regex_str: str, lang: Optional[str] = None):
def handle_homescreen_loaded(self, message: Message):
"""homescreen loaded, we should re-register any metadata we want to provide"""
self._register_skill_json()
self._register_app_launcher()
#self._register_app_launcher()

def handle_enable_intent(self, message: Message):
"""
Expand Down

0 comments on commit 58fd684

Please sign in to comment.