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)