1
0

qt/qml: delay starting network until after first-start-network-setup

The qt, qml, and kivy GUIs have a first-start network-setup screen
that allows the user customising the network settings before creating a wallet.
Previously the daemon used to create the network and start it, before this screen,
before the GUI even starts. If the user changed network settings, those would
be set on the already running network, potentially including restarting the network.

Now it becomes the responsibility of the GUI to start the network, allowing this
first-start customisation to take place before starting the network at all.
The qt and the qml GUIs are adapted to make use of this. Kivy, and the other
prototype GUIs are not adapted and just start the network right away, as before.
This commit is contained in:
SomberNight
2023-03-29 22:09:46 +00:00
parent 9ef6d6a56f
commit 1530668960
11 changed files with 57 additions and 25 deletions

View File

@@ -177,7 +177,9 @@ class ElectrumGui(BaseElectrumGui, EventListener):
def main(self):
while self.done == 0: self.main_command()
self.daemon.start_network()
while self.done == 0:
self.main_command()
def do_send(self):
if not is_address(self.str_recipient):