Fix IDE windows status when completion restores an old layout