1
0

qml: add close no-op to QEQRScanner to fix type error

Adds close() no-op method to QEQRScanner to prevent type errors like
this:
```
01-02 17:28:09.645 10543 10565 I python  : 162.27 | W | gui.qml.qeapp | file:///data/data/org.electrum.electrum/files/app/electrum/gui/qml/components/SweepDialog.qml:123: TypeError: Property 'close' of object QEQRScanner(0xdd32f66fb600)
is not a function
```
This commit is contained in:
f321x
2026-01-08 11:14:06 +01:00
parent 2172dadf62
commit 04b7b683ed

View File

@@ -56,6 +56,11 @@ class QEQRScanner(QObject):
activity.bind(on_activity_result=self.on_qr_activity_result)
jpythonActivity.startActivityForResult(intent, 0)
@pyqtSlot()
def close(self):
# no-op to prevent qml type error
pass
def on_qr_activity_result(self, requestCode, resultCode, intent):
try:
if resultCode == -1: # RESULT_OK: