This commit is contained in:
Eugene Pankov 2020-02-16 23:00:02 +01:00
parent 2d357d0ed2
commit dc03a7f135

View File

@ -82,10 +82,11 @@ export class EditConnectionModalComponent {
this.electron.dialog.showOpenDialog(
this.hostApp.getWindow(),
{
defaultPath: this.connection.privateKey,
title: 'Select private key',
}
).then(result => {
if (result.filePaths) {
if (!result.canceled) {
this.connection.privateKey = result.filePaths[0]
}
})