aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-31 01:36:05 +0800
committerobscuren <geffobscura@gmail.com>2014-05-31 01:36:05 +0800
commit0bdb0a9d58be08e210eb94dc6893f6103202ae7c (patch)
tree698d0741de1bc01510bbb98fdb42baa8aef690d1 /ethereal/ui/gui.go
parent65c5a20e1c04c996f96f81cd959ab986b8482b6a (diff)
downloaddexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.tar
dexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.tar.gz
dexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.tar.bz2
dexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.tar.lz
dexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.tar.xz
dexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.tar.zst
dexon-0bdb0a9d58be08e210eb94dc6893f6103202ae7c.zip
Added ini file for ethereum. fixes #66
Diffstat (limited to 'ethereal/ui/gui.go')
-rw-r--r--ethereal/ui/gui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethereal/ui/gui.go b/ethereal/ui/gui.go
index d6430d1fe..42d1c7a04 100644
--- a/ethereal/ui/gui.go
+++ b/ethereal/ui/gui.go
@@ -67,6 +67,7 @@ func (gui *Gui) Start(assetPath string) {
}})
ethutil.Config.SetClientString(fmt.Sprintf("/Ethereal v%s", version))
+
// Create a new QML engine
gui.engine = qml.NewEngine()
context := gui.engine.Context()
@@ -315,3 +316,11 @@ func (gui *Gui) Create(recipient, value, gas, gasPrice, data string) (*ethpub.PR
return gui.pub.Transact(ethutil.Hex(keyPair.PrivateKey), recipient, value, gas, gasPrice, data)
}
+
+func (gui *Gui) ChangeClientId(id string) {
+ ethutil.Config.SetIdentifier(id)
+}
+
+func (gui *Gui) ClientId() string {
+ return ethutil.Config.Identifier
+}