1
0

Remove two redundant refreshes of history tab during startup.

The call to update_wallet() is redundant with earlier call to load_wallet().
Set the need_update boolean so the timer will refresh rather than
unconditionally refreshing.  This typically results in it merging with
the first network "updated" event resulting in one less refresh.

For me in online mode this results in history being calculated and shown
only twice during startup rather than four times.
This commit is contained in:
Neil Booth
2015-04-30 14:21:58 +09:00
parent 8f84a90ab5
commit 1bafa42fbd
2 changed files with 1 additions and 2 deletions

View File

@@ -241,7 +241,6 @@ class ElectrumGui:
self.set_url(url)
w.connect_slots(s)
w.update_wallet()
signal.signal(signal.SIGINT, lambda *args: self.app.quit())
self.app.exec_()