tfix flash during startup - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f50111f15ab728c66442f5d2c7dbfaa37204c78a DIR parent 2450c1d481cb92c7659ca307a0eef91369442918 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 8 Jan 2017 14:44:04 +0100 fix flash during startup Diffstat: M gui/qt/main_window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -720,7 +720,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): self.receive_amount_e.textChanged.connect(self.update_receive_qr) self.fiat_receive_e = AmountEdit(self.fx.get_currency) - self.fiat_receive_e.setVisible(self.fx.is_enabled()) + if not self.fx.is_enabled(): + self.fiat_receive_e.setVisible(False) grid.addWidget(self.fiat_receive_e, 2, 2, Qt.AlignLeft) self.connect_fields(self, self.receive_amount_e, self.fiat_receive_e, None) t@@ -977,7 +978,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): grid.addWidget(self.amount_e, 4, 1) self.fiat_send_e = AmountEdit(self.fx.get_currency) - self.fiat_send_e.setVisible(self.fx.is_enabled()) + if not self.fx.is_enabled(): + self.fiat_send_e.setVisible(False) grid.addWidget(self.fiat_send_e, 4, 2) self.amount_e.frozen.connect( lambda: self.fiat_send_e.setFrozen(self.amount_e.isReadOnly())) t@@ -1073,8 +1075,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): vbox.addWidget(self.invoices_label) vbox.addWidget(self.invoice_list) vbox.setStretchFactor(self.invoice_list, 1000) - - # Defer this until grid is parented to avoid ugly flash during startup run_hook('create_send_tab', grid) return w