Skip to content
Snippets Groups Projects
Commit bbcf3726 authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] only display licence step when registering a new member account on the network

parent 50198a05
No related branches found
No related tags found
No related merge requests found
......@@ -147,12 +147,13 @@ class ConnectionConfigController(QObject):
self.view.button_connect.setEnabled(True)
self.view.button_register.setEnabled(True)
self._logger.debug("Licence step")
self.view.stacked_pages.setCurrentWidget(self.view.page_licence)
self.view.button_accept.clicked.connect(
lambda: self.step_licence.set_result(True)
)
await self.step_licence
if self.mode == ConnectionConfigController.REGISTER:
self._logger.debug("Licence step")
self.view.stacked_pages.setCurrentWidget(self.view.page_licence)
self.view.button_accept.clicked.connect(
lambda: self.step_licence.set_result(True)
)
await self.step_licence
self.view.button_accept.disconnect()
self._logger.debug("Key step")
self.view.set_currency(self.model.connection.currency)
......
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