Preserve window state in Startup Dialog, fixes #591