summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.go b/window.go
index 780414b..cdb346b 100644
--- a/window.go
+++ b/window.go
@@ -56,7 +56,7 @@ func (w *Window) SetTitle(title string) (err error) {
defer w.lock.Unlock()
if w.created {
- panic("TODO")
+ return w.sysData.setText(title)
}
w.initTitle = title
return nil
@@ -93,6 +93,7 @@ func (w *Window) Open() (err error) {
return err
}
}
+ w.created = true
}
return w.sysData.show()
}