Fix some TrayIcon show/hide window issues