diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-09 21:40:14 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-09 21:40:14 -0400 |
| commit | 45e07797908a16102952e07ca75a3d3a262ecde1 (patch) | |
| tree | 006f1e66ed886ee2d765ae8711df9755a17acaef /sysdata_darwin.go | |
| parent | 3ff9c7d23378c8fbcdc1eebc97d8e9d0ee64c22c (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_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 02e3d8e..057b333 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -314,6 +314,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) |
