Commit 78bc04ae authored by Philipp Hörist's avatar Philipp Hörist

Client: Add account-connected signal

parent 26a09b83
......@@ -178,6 +178,9 @@ class Client(ConnectionHandlers):
def _on_resume_successful(self, _client, _signal_name):
self._set_state(ClientState.CONNECTED)
app.nec.push_incoming_event(NetworkEvent('account-connected',
account=self._account))
app.nec.push_incoming_event(
OurShowEvent(None, conn=self, show=self._status))
......@@ -267,6 +270,8 @@ class Client(ConnectionHandlers):
def _on_connected(self, client, _signal_name):
self._set_state(ClientState.CONNECTED)
app.nec.push_incoming_event(NetworkEvent('account-connected',
account=self._account))
self.get_module('Discovery').discover_server_info()
self.get_module('Discovery').discover_account_info()
self.get_module('Discovery').discover_server_items()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment