fixed private key selector dialog (fixes #1470)

This commit is contained in:
Eugene Pankov 2019-09-10 17:02:03 +02:00
parent 6eafd88ec2
commit acbb9d4ce4

View File

@ -79,15 +79,16 @@ export class EditConnectionModalComponent {
} }
selectPrivateKey () { selectPrivateKey () {
const path = this.electron.dialog.showOpenDialog( this.electron.dialog.showOpenDialog(
this.hostApp.getWindow(), this.hostApp.getWindow(),
{ {
title: 'Select private key', title: 'Select private key',
} }
) ).then(result => {
if (path) { if (!result.filePaths) {
this.connection.privateKey = path[0] this.connection.privateKey = result.filePaths[0]
} }
})
} }
save () { save () {