commit 610ae9131001149793e05316ff83f7861ac313b5
parent 6e9c58783e2fa082d2be409790bc9e67e3f37330
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 16 Oct 2015 23:46:53 +0200
restore offline mode with gui
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/electrum b/electrum
@@ -504,8 +504,11 @@ if __name__ == '__main__':
# daemon is not running
if cmd_name == 'gui':
- network = Network(config, plugins)
- network.start()
+ if not config.get('offline'):
+ network = Network(config, plugins)
+ network.start()
+ else:
+ network = None
server = NetworkServer(config, network)
server.start()
server.gui = init_gui(config, network, plugins)