mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-01 15:06:27 +08:00
fixed private key selector dialog (fixes #1470)
This commit is contained in:
parent
6eafd88ec2
commit
acbb9d4ce4
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user