Browse Source

check that GUI has new_window method

283
ThomasV 10 years ago
parent
commit
ba2570b8aa
  1. 5
      electrum

5
electrum

@ -296,10 +296,13 @@ class ClientThread(util.DaemonThread):
cmd = config.get('cmd') cmd = config.get('cmd')
if cmd == 'gui': if cmd == 'gui':
if self.server.gui: if self.server.gui:
if hasattr(server.gui, 'new_window'):
self.server.gui.new_window(config) self.server.gui.new_window(config)
response = "ok" response = "ok"
else: else:
response = "Error: Electrum daemon is running" response = "error: current GUI does not support multiple windows"
else:
response = "error: Electrum daemon is running"
elif cmd == 'daemon': elif cmd == 'daemon':
sub = config.get('subcommand') sub = config.get('subcommand')
assert sub in ['start', 'stop', 'status'] assert sub in ['start', 'stop', 'status']

Loading…
Cancel
Save