1
0

Abstract and enable qrscanner dialog for send screen.

This commit is contained in:
akshayaurora
2014-06-24 22:09:11 +05:30
committed by ThomasV
parent 33c89b47d8
commit f442cc31e4
7 changed files with 39 additions and 22 deletions

View File

@@ -9,12 +9,7 @@ class NewContactDialog(Factory.AnimatedPopup):
def load_qr_scanner(self):
self.dismiss()
dlg = Cache.get('electrum_widgets', 'QrScannerDialog')
if not dlg:
dlg = Factory.QrScannerDialog()
Cache.append('electrum_widgets', 'QrScannerDialog', dlg)
dlg.bind(on_complete=self.on_complete)
dlg.open()
App.get_running_app().scan_qr(on_complete=self.on_complete)
def on_complete(self, instance, uri):
self.new_contact(uri=uri)