Browse Source

qt PayToEdit: rm redundant code

This is already handled by `self.textChanged.connect(self.check_text)` in __init__.
patch-4
SomberNight 3 years ago
parent
commit
2e260bd602
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 7
      electrum/gui/qt/paytoedit.py

7
electrum/gui/qt/paytoedit.py

@ -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():

Loading…
Cancel
Save