From 0e3bf3df45c0c5b1dae860296873283817e2ffa8 Mon Sep 17 00:00:00 2001 From: SimonLaux Date: Thu, 28 Sep 2023 17:05:31 +0200 Subject: [PATCH] fix: import key from file instead of folder 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)