Skip to content

Commit

Permalink
Fix GUI state synchronization to handle connection announce
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Oct 6, 2023
1 parent 0547bbd commit 5a766e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ovos_gui/bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def open(self):
"""
GUIWebsocketHandler.clients.append(self)
LOG.info('New Connection opened!')
self.synchronize()

def on_close(self):
"""
Expand Down Expand Up @@ -228,6 +227,9 @@ def on_message(self, message: str):
framework = "qt5"
LOG.info(f"New connection for framework: {framework}")
self._framework = framework

# sync after we've determined what framework this GUI uses
self.synchronize()
else:
# message not in spec
# https://github.com/MycroftAI/mycroft-gui/blob/master/transportProtocol.md
Expand Down

0 comments on commit 5a766e6

Please sign in to comment.