Browse Source

correctly handle bitcoin URIs if GUI is already running

see #4796
3.3.3.1
SomberNight 6 years ago
parent
commit
361ffc0620
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 1
      electrum/daemon.py
  2. 4
      electrum/gui/qt/__init__.py

1
electrum/daemon.py

@ -221,6 +221,7 @@ class Daemon(DaemonThread):
config = SimpleConfig(config_options)
if self.gui:
if hasattr(self.gui, 'new_window'):
config.open_last_wallet()
path = config.get_wallet_path()
self.gui.new_window(path, config.get('url'))
response = "ok"

4
electrum/gui/qt/__init__.py

@ -237,8 +237,8 @@ class ElectrumGui(PrintError):
try:
for w in self.windows:
if w.wallet.storage.path == wallet.storage.path:
w.bring_to_top()
return
break
else:
w = self.create_window_for_wallet(wallet)
except BaseException as e:
traceback.print_exc(file=sys.stdout)

Loading…
Cancel
Save