aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/ui_lib.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-22 19:35:31 +0800
committerobscuren <geffobscura@gmail.com>2015-01-22 19:35:31 +0800
commitb777d6aa3f0e771ca8465924820db1848bc47402 (patch)
tree9638f6c1b4181c53f8b5eecb1bec8ea26819bbfa /cmd/mist/ui_lib.go
parent4df2e1ef5c20ebd7004a595de7e6a032699106ad (diff)
downloadgo-tangerine-b777d6aa3f0e771ca8465924820db1848bc47402.tar.gz
go-tangerine-b777d6aa3f0e771ca8465924820db1848bc47402.tar.zst
go-tangerine-b777d6aa3f0e771ca8465924820db1848bc47402.zip
UI Updates
* Browser now has tabs * Fixed a callback issue
Diffstat (limited to 'cmd/mist/ui_lib.go')
-rw-r--r--cmd/mist/ui_lib.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go
index 596f8442a..e0321f6dd 100644
--- a/cmd/mist/ui_lib.go
+++ b/cmd/mist/ui_lib.go
@@ -316,20 +316,15 @@ func (self *UiLib) NewFilter(object map[string]interface{}, view *qml.Common) (i
filter := qt.NewFilterFromMap(object, self.eth)
filter.MessageCallback = func(messages state.Messages) {
view.Call("messages", xeth.ToJSMessages(messages), id)
- //self.win.Root().Call("invokeFilterCallback", xeth.ToJSMessages(messages), id)
}
id = self.filterManager.InstallFilter(filter)
return id
}
-func (self *UiLib) NewFilterString(typ string) (id int) {
+func (self *UiLib) NewFilterString(typ string, view *qml.Common) (id int) {
filter := core.NewFilter(self.eth)
filter.BlockCallback = func(block *types.Block) {
- if self.win != nil && self.win.Root() != nil {
- self.win.Root().Call("invokeFilterCallback", "{}", id)
- } else {
- fmt.Println("QML is lagging")
- }
+ view.Call("messages", "{}", id)
}
id = self.filterManager.InstallFilter(filter)
return id