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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user