1
0

Fix daemon being treated as a function (#6771)

daemon was improperly turned into a function in the Python console.
Point daemon to window.gui_object.daemon instead.
This commit is contained in:
Benoît Verret
2020-11-24 15:24:44 -05:00
committed by GitHub
parent 85bce256e7
commit a1c02e2c45

View File

@@ -2143,7 +2143,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
self.password_dialog,
**{**kwargs, 'wallet': self.wallet})
for m in dir(c):
if m[0]=='_' or m in ['network','wallet','config']: continue
if m[0]=='_' or m in ['network','wallet','config','daemon']: continue
methods[m] = mkfunc(c._run, m)
console.updateNamespace(methods)