MainFrm: don't hide window when changing tray icon

Fixes #3391