From 9cd635bef4eb188df857eedc9c6e89b7ad28df1a Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Thu, 28 Sep 2023 18:30:00 +0200 Subject: [PATCH] fix: import key from file instead of folder (#3420) fixes #1863 --- CHANGELOG.md | 1 + src/renderer/components/dialogs/Settings-ManageKeys.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef78ab8726..8c92bc1808 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/renderer/components/dialogs/Settings-ManageKeys.tsx b/src/renderer/components/dialogs/Settings-ManageKeys.tsx index a6b3deb04a..79bc53a7ad 100644 --- a/src/renderer/components/dialogs/Settings-ManageKeys.tsx +++ b/src/renderer/components/dialogs/Settings-ManageKeys.tsx @@ -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)