From 45e07797908a16102952e07ca75a3d3a262ecde1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 9 Mar 2014 21:40:14 -0400 Subject: 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). --- sysdata_unix.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdata_unix.go') 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) -- cgit v1.2.3