440
if (profile.id === existing.id) {
441
if (!existing.isDefault) {
442
>
profileToUpdate = toUserDataProfile(existing.id, options.name ?? existing.name, existing.location, this.profilesCacheHome, {
userDataProfile.ts
443
>
icon: options.icon === null ? undefined : options.icon ?? existing.icon,
444
>
transient: options.transient ?? existing.isTransient,
445
>
useDefaultFlags: options.useDefaultFlags ?? existing.useDefaultFlags,
446
>
workspaces: options.workspaces ?? existing.workspaces,
447
>
}, this.defaultProfile);
448
} else if (options.workspaces) {
449
profileToUpdate = existing;