summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-09 21:40:14 -0400
committerPietro Gagliardi <[email protected]>2014-03-09 21:40:14 -0400
commit45e07797908a16102952e07ca75a3d3a262ecde1 (patch)
tree006f1e66ed886ee2d765ae8711df9755a17acaef /sysdata_unix.go
parent3ff9c7d23378c8fbcdc1eebc97d8e9d0ee64c22c (diff)
Split sysData.show() into separate show() and firstShow() to accomodate Windows's differing rules for first-time window show; this will also allow me to remove the error returns from sysData.show() and sysData.hide() (later).
Diffstat (limited to 'sysdata_unix.go')
-rw-r--r--sysdata_unix.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go
index c07545a..143a64c 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -156,6 +156,12 @@ func (s *sysData) make(initText string, window *sysData) error {
return nil
}
+// used for Windows; nothing special needed elsewhere
+func (s *sysData) firstShow() error {
+ s.show()
+ return nil
+}
+
func (s *sysData) show() error {
ret := make(chan struct{})
defer close(ret)