only hide on minimize if tray enabled