mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
kivy: fix ln channel open via scan_qr
This commit is contained in:
parent
45f3e28d38
commit
0deb12cb2b
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,7 @@ Builder.load_string('''
|
||||||
icon: 'atlas://electrum/gui/kivy/theming/light/camera'
|
icon: 'atlas://electrum/gui/kivy/theming/light/camera'
|
||||||
size_hint: 0.5, None
|
size_hint: 0.5, None
|
||||||
height: '48dp'
|
height: '48dp'
|
||||||
on_release: app.scan_qr(on_complete=s.on_pubkey)
|
on_release: app.scan_qr(on_complete=s.on_qr)
|
||||||
Button:
|
Button:
|
||||||
text: _('Suggest')
|
text: _('Suggest')
|
||||||
size_hint: 1, None
|
size_hint: 1, None
|
||||||
|
@ -122,6 +122,9 @@ class LightningOpenChannelDialog(Factory.Popup):
|
||||||
return
|
return
|
||||||
self.pubkey = contents
|
self.pubkey = contents
|
||||||
|
|
||||||
|
def on_qr(self, conn_str):
|
||||||
|
self.pubkey = conn_str
|
||||||
|
|
||||||
def open_channel(self):
|
def open_channel(self):
|
||||||
if not self.pubkey or not self.amount:
|
if not self.pubkey or not self.amount:
|
||||||
self.app.show_info(_('All fields must be filled out'))
|
self.app.show_info(_('All fields must be filled out'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue