use onShowHideWindow() in close event to toggle the show/hide text in system tray correctly