aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-12 18:21:50 +0800
committerobscuren <geffobscura@gmail.com>2014-08-12 18:21:50 +0800
commitdc3b0e170c4c5659d5534ee6b6b6db700790dfc5 (patch)
tree596cc82b7ec91bcc7f186dafe0bf3fa137c5cc7c /ethereal/gui.go
parent59d9746849e9ba794a190b04d3d9f444321b82b8 (diff)
downloadgo-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.tar
go-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.tar.gz
go-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.tar.bz2
go-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.tar.lz
go-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.tar.xz
go-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.tar.zst
go-tangerine-dc3b0e170c4c5659d5534ee6b6b6db700790dfc5.zip
Name changes
Diffstat (limited to 'ethereal/gui.go')
-rw-r--r--ethereal/gui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethereal/gui.go b/ethereal/gui.go
index e0a415201..78a930e02 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -106,11 +106,13 @@ func (gui *Gui) Start(assetPath string) {
logger.Infoln("Starting GUI")
gui.open = true
win.Show()
+
// only add the gui logger after window is shown otherwise slider wont be shown
if addlog {
ethlog.AddLogSystem(gui)
}
win.Wait()
+
// need to silence gui logger after window closed otherwise logsystem hangs (but do not save loglevel)
gui.logLevel = ethlog.Silence
gui.open = false