tkivy: fix ln channel open via scan_qr - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 0deb12cb2b1297a14b25b2f45510dc3e619c4d9d DIR parent 45f3e28d381b1c5be47315a67ee1fc23fd1519e6 HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 5 Sep 2019 17:06:42 +0200 kivy: fix ln channel open via scan_qr Diffstat: M electrum/gui/kivy/uix/dialogs/ligh… | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/kivy/uix/dialogs/lightning_open_channel.py b/electrum/gui/kivy/uix/dialogs/lightning_open_channel.py t@@ -71,7 +71,7 @@ Builder.load_string(''' icon: 'atlas://electrum/gui/kivy/theming/light/camera' size_hint: 0.5, None height: '48dp' - on_release: app.scan_qr(on_complete=s.on_pubkey) + on_release: app.scan_qr(on_complete=s.on_qr) Button: text: _('Suggest') size_hint: 1, None t@@ -122,6 +122,9 @@ class LightningOpenChannelDialog(Factory.Popup): return self.pubkey = contents + def on_qr(self, conn_str): + self.pubkey = conn_str + def open_channel(self): if not self.pubkey or not self.amount: self.app.show_info(_('All fields must be filled out'))