summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.go b/gui.go
index a743236..7b7908c 100644
--- a/gui.go
+++ b/gui.go
@@ -96,7 +96,7 @@ func loop(w *g.MasterWindow) func() {
func gui() {
guiCfg.Date = time.Now()
w := g.NewMasterWindow("Engarde Importer", 400, 200, 0)
- if img, _, err := image.Decode(bytes.NewReader(icon)); err != nil {
+ if img, _, err := image.Decode(bytes.NewReader(icon)); err == nil {
w.SetIcon([]image.Image{img})
}