mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 03:20:12 +00:00
fixed #1629
This commit is contained in:
parent
2d357d0ed2
commit
dc03a7f135
@ -82,10 +82,11 @@ export class EditConnectionModalComponent {
|
|||||||
this.electron.dialog.showOpenDialog(
|
this.electron.dialog.showOpenDialog(
|
||||||
this.hostApp.getWindow(),
|
this.hostApp.getWindow(),
|
||||||
{
|
{
|
||||||
|
defaultPath: this.connection.privateKey,
|
||||||
title: 'Select private key',
|
title: 'Select private key',
|
||||||
}
|
}
|
||||||
).then(result => {
|
).then(result => {
|
||||||
if (result.filePaths) {
|
if (!result.canceled) {
|
||||||
this.connection.privateKey = result.filePaths[0]
|
this.connection.privateKey = result.filePaths[0]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user