mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
check that GUI has new_window method
This commit is contained in:
parent
0e2db1e0ca
commit
ba2570b8aa
1 changed files with 6 additions and 3 deletions
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…
Add table
Reference in a new issue