Skip to content
Snippets Groups Projects
Commit 78bc04ae authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Client: Add account-connected signal

parent 26a09b83
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,9 @@ def _on_resume_failed(self, _client, _signal_name):
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 @@ def _on_connection_failed(self, _client, _signal_name):
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment