tqt: don't update tabs in ElectrumWindow.__init__ directly - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 67d3d6b5b5426e0c13bc80437a0b3716e8446134 DIR parent 01246b0d97ee196ccdb98af35a4f48a637825def HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 18 Sep 2018 04:19:12 +0200 qt: don't update tabs in ElectrumWindow.__init__ directly Diffstat: M electrum/gui/qt/main_window.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -354,10 +354,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): wallet.thread = TaskThread(self, self.on_error) self.wallet = wallet self.update_recently_visited(wallet.storage.path) - # address used to create a dummy transaction and estimate transaction fee - self.history_list.update() - self.address_list.update() - self.utxo_list.update() + # update(==init) all tabs; expensive for large wallets.. + # so delay it somewhat, hence __init__ can finish and the window can appear sooner + QTimer.singleShot(50, self.update_tabs) self.need_update.set() # Once GUI has been initialized check if we want to announce something since the callback has been called before the GUI was initialized # update menus