aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-24 20:16:43 +0800
committerobscuren <geffobscura@gmail.com>2014-07-24 20:16:43 +0800
commit82a84dca807c8966079253977329ef0800d20557 (patch)
tree5be0eb27686af820b2754ff42bcd106495261a27 /ethereal
parent0ca776a6b80097e34006f26fd934ed5f388e68f8 (diff)
downloaddexon-82a84dca807c8966079253977329ef0800d20557.tar
dexon-82a84dca807c8966079253977329ef0800d20557.tar.gz
dexon-82a84dca807c8966079253977329ef0800d20557.tar.bz2
dexon-82a84dca807c8966079253977329ef0800d20557.tar.lz
dexon-82a84dca807c8966079253977329ef0800d20557.tar.xz
dexon-82a84dca807c8966079253977329ef0800d20557.tar.zst
dexon-82a84dca807c8966079253977329ef0800d20557.zip
Move to goroutine for faster startup time
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/gui.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/ethereal/gui.go b/ethereal/gui.go
index d76db2ade..df01cddda 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -143,10 +143,12 @@ func (gui *Gui) showWallet(context *qml.Context) (*qml.Window, error) {
win := gui.createWindow(component)
- gui.setInitialBlockChain()
- gui.loadAddressBook()
- gui.readPreviousTransactions()
- gui.setPeerInfo()
+ go func() {
+ gui.setInitialBlockChain()
+ gui.loadAddressBook()
+ gui.readPreviousTransactions()
+ gui.setPeerInfo()
+ }()
go gui.update()