1
0

qml: fix flake errors

This commit is contained in:
Sander van Grieken
2022-09-09 19:58:48 +02:00
parent 27999a9583
commit 6bbd18dc78
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class PluginQObject(QObject):
_busy = False
def __init__(self, plugin, parent: 'ElectrumGuiApplication'):
def __init__(self, plugin, parent):
super().__init__(parent)
self.plugin = plugin
self.app = parent

View File

@@ -117,7 +117,7 @@ class Plugin(LabelsPlugin):
_wallet.labelsUpdated.emit()
@hook
def init_qml(self, gui: 'ElectrumGui'):
def init_qml(self, gui):
self.logger.debug(f'init_qml hook called, gui={str(type(gui))}')
self._app = gui.app
# important: QSignalObject needs to be parented, as keeping a ref