diff --git a/ovos_gui/namespace.py b/ovos_gui/namespace.py index 54bff59..04da53b 100644 --- a/ovos_gui/namespace.py +++ b/ovos_gui/namespace.py @@ -463,6 +463,12 @@ def __init__(self, core_bus: MessageBusClient): self._init_gui_server() self._define_message_handlers() + resp = self.core_bus.wait_for_response(Message("mycroft.skills.is_ready", + context={"source": "gui", "destination": ["skills"]})) + if resp and resp.data.get("status"): + LOG.debug("Skills service already running") + self.handle_ready() + @property def _active_homescreen(self) -> str: return Configuration().get('gui', {}).get('idle_display_skill') @@ -495,7 +501,7 @@ def _define_message_handlers(self): self.core_bus.on("gui.page_gained_focus", self.handle_page_gained_focus) self.core_bus.on("mycroft.skills.trained", self.handle_ready) - def handle_ready(self, message): + def handle_ready(self, message=None): self._ready_event.set() self.core_bus.on("gui.volunteer_page_upload", self.handle_gui_pages_available)