Skip to content

Commit

Permalink
fix: import key from file instead of folder (#3420)
Browse files Browse the repository at this point in the history
fixes #1863
  • Loading branch information
Simon-Laux authored Sep 28, 2023
1 parent 21394d5 commit 9cd635b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- fix clipboard not working in webxdc apps
- fix `target=_blank` links in html emails don't work #3408
- add description for enableChatAuditLog setting
- fix: import key from file instead of folder, fixes #1863

<a id="1_40_4"></a>

Expand Down
3 changes: 2 additions & 1 deletion src/renderer/components/dialogs/Settings-ManageKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ async function onKeysImport() {
const opts: OpenDialogOptions = {
title: tx('pref_managekeys_import_secret_keys'),
defaultPath: runtime.getAppPath('downloads'),
properties: ['openDirectory'],
properties: ['openFile'],
filters: [{ extensions: ['asc'], name: 'PGP Key' }],
}

const filename = await runtime.showOpenFileDialog(opts)
Expand Down

0 comments on commit 9cd635b

Please sign in to comment.