1
0

qt PayToEdit: rm redundant code

This is already handled by `self.textChanged.connect(self.check_text)` in __init__.
This commit is contained in:
SomberNight
2022-05-14 01:28:37 +02:00
parent b3d8b4603f
commit 2e260bd602

View File

@@ -257,13 +257,6 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger):
self.setMaximumHeight(h)
self.verticalScrollBar().hide()
def qr_input(self, *, callback=None):
def _on_qr_success(data):
if data.lower().startswith(BITCOIN_BIP21_URI_SCHEME + ':'):
self.win.pay_to_URI(data)
# TODO: update fee
super(PayToEdit, self).qr_input(callback=_on_qr_success)
def resolve(self):
self.is_alias = False
if self.hasFocus():