Skip to content

Commit

Permalink
Merge pull request #2082 from codefori/fix/privateKeySetting
Browse files Browse the repository at this point in the history
Fixed privatekeypath update
  • Loading branch information
worksofliam authored May 31, 2024
2 parents af26c22 + 5445bd7 commit 47b7627
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webviews/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class SettingsUI {

default:
if (data.password) {
data.privateKeyPath = undefined;
delete data.privateKeyPath;
if (data.password !== storedPassword) {
// New password was entered, so store the password
// and remove the private key path from the data
Expand All @@ -382,6 +382,9 @@ export class SettingsUI {
await ConnectionManager.deleteStoredPassword(context, name);
vscode.window.showInformationMessage(t(`login.privateKey.updated`, name));
}
else{
delete data.privateKeyPath;
}
break;
}

Expand Down

0 comments on commit 47b7627

Please sign in to comment.