Browse Source

pass daemon to Commands instance in qt console. fixes #6926

patch-4
ThomasV 4 years ago
parent
commit
de903103da
  1. 8
      electrum/gui/qt/main_window.py

8
electrum/gui/qt/main_window.py

@ -2135,9 +2135,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
'lnutil': lnutil,
})
c = commands.Commands(config=self.config,
network=self.network,
callback=lambda: self.console.set_json(True))
c = commands.Commands(
config=self.config,
daemon=self.gui_object.daemon,
network=self.network,
callback=lambda: self.console.set_json(True))
methods = {}
def mkfunc(f, method):
return lambda *args, **kwargs: f(method,

Loading…
Cancel
Save