tqt main_window: trivial clean-up re is_onchain - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2e654c94409435a18439eb7c851433cee2ed87ae DIR parent e9645db1829a653b9605e205b2f232be545f41b7 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 21 Jan 2020 14:22:25 +0100 qt main_window: trivial clean-up re is_onchain Diffstat: M electrum/gui/qt/main_window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -1447,7 +1447,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): def read_invoice(self): if self.check_send_tab_payto_line_and_show_errors(): return - if not self.is_onchain: + if not self._is_onchain: invoice = self.payto_e.lightning_invoice if not invoice: return t@@ -1768,7 +1768,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): self.set_onchain(False) def set_onchain(self, b): - self.is_onchain = b + self._is_onchain = b self.max_button.setEnabled(b) def pay_to_URI(self, URI): t@@ -1808,7 +1808,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): self.payment_request = None self.payto_URI = None self.payto_e.is_pr = False - self.is_onchain = False self.set_onchain(False) for e in [self.payto_e, self.message_e, self.amount_e]: e.setText('')