Fix OS X show/hide issue from close button

Fixes issue when close button (red) was used and the window wouldn't come back and removes redundant action on OS X