Merge pull request #1176 from kyuupichan/no_ugly_flash

Avoid ugly flash of small window during startup.
This commit is contained in:
ThomasV 2015-04-30 06:56:36 +02:00
commit baa178509a
1 changed files with 3 additions and 1 deletions

View File

@ -922,7 +922,6 @@ class ElectrumWindow(QMainWindow):
self.fee_e = BTCAmountEdit(self.get_decimal_point)
grid.addWidget(self.fee_e_label, 5, 0)
grid.addWidget(self.fee_e, 5, 1, 1, 2)
self.update_fee_edit()
self.send_button = EnterButton(_("Send"), self.do_send)
self.clear_button = EnterButton(_("Clear"), self.do_clear)
@ -987,6 +986,9 @@ class ElectrumWindow(QMainWindow):
vbox.addWidget(self.invoices_label)
vbox.addWidget(self.invoices_list)
# Defer this until grid is parented to avoid ugly flash during startup
self.update_fee_edit()
run_hook('create_send_tab', grid)
return w