aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-08 06:50:25 +0800
committerobscuren <geffobscura@gmail.com>2014-09-08 06:50:25 +0800
commit893e9256a0f48b8fd45f29717145a4df23a3a799 (patch)
tree297d4267f08ea9552e778d5d7bda1f3d9e8f89de /ethereal/gui.go
parent4e6defd6570dd213c53d73035e235431bb5408b5 (diff)
downloaddexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.gz
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.bz2
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.lz
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.xz
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.tar.zst
dexon-893e9256a0f48b8fd45f29717145a4df23a3a799.zip
Some minor corrections
Diffstat (limited to 'ethereal/gui.go')
-rw-r--r--ethereal/gui.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/ethereal/gui.go b/ethereal/gui.go
index bd1466e8b..33fd35e6e 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"math/big"
+ "path"
"runtime"
"strconv"
"strings"
@@ -63,12 +64,7 @@ func NewWindow(ethereum *eth.Ethereum, config *ethutil.ConfigManager, clientIden
pipe := ethpipe.NewJSPipe(ethereum)
gui := &Gui{eth: ethereum, txDb: db, pipe: pipe, logLevel: ethlog.LogLevel(logLevel), Session: session, open: false, clientIdentity: clientIdentity, config: config, plugins: make(map[string]plugin)}
- data, err := ethutil.ReadAllFile(ethutil.Config.ExecPath + "/plugins.json")
- if err != nil {
- fmt.Println(err)
- }
- fmt.Println("plugins:", string(data))
-
+ data, _ := ethutil.ReadAllFile(path.Join(ethutil.Config.ExecPath, "plugins.json"))
json.Unmarshal([]byte(data), &gui.plugins)
return gui
@@ -339,6 +335,8 @@ func (gui *Gui) update() {
}()
for _, plugin := range gui.plugins {
+ logger.Infoln("Loading plugin ", plugin.Name)
+
gui.win.Root().Call("addPlugin", plugin.Path, "")
}