2
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-03-01 15:06:27 +08:00

fixed private key selector dialog (fixes )

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 () {
const path = this.electron.dialog.showOpenDialog(
this.electron.dialog.showOpenDialog(
this.hostApp.getWindow(),
{
title: 'Select private key',
}
)
if (path) {
this.connection.privateKey = path[0]
}
).then(result => {
if (!result.filePaths) {
this.connection.privateKey = result.filePaths[0]
}
})
}
save () {