Avoid flicker of old data when the main window shows