Skip to content

Commit

Permalink
Should be able to delete a profile after a backup restore, closes #390
Browse files Browse the repository at this point in the history
  • Loading branch information
salarcode committed Sep 18, 2024
1 parent 1e8e22a commit de5338b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/SettingsOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,11 @@ export class SettingsOperation {

ProfileOperations.resetProfileTypeConfig(newProfile);

if (newProfile.profileTypeConfig.editable &&
typeof (backProxyProfile['profileTypeConfig']['builtin']) === 'boolean')
// `builtin` value needs a reset as the default values is not correct for user created profiles
newProfile.profileTypeConfig.builtin = backProxyProfile.profileTypeConfig.builtin;

newProxyProfiles.push(newProfile);
}

Expand Down

0 comments on commit de5338b

Please sign in to comment.