1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Fixed crash on certain Linux distributions when importing or exporting a file

Ref: https://discourse.joplinapp.org/t/20702/37
This commit is contained in:
Laurent Cozic
2021-11-01 07:38:06 +00:00
parent c5569ef06d
commit 60127831b8
10 changed files with 18 additions and 18 deletions

View File

@ -50,7 +50,7 @@ export const KeymapConfigScreen = ({ themeId }: KeymapConfigScreenProps) => {
};
const handleImport = async () => {
const filePath = bridge().showOpenDialog({
const filePath = await bridge().showOpenDialog({
properties: ['openFile'],
defaultPath: 'keymap-desktop',
filters: [{ name: 'Joplin Keymaps (keymap-desktop.json)', extensions: ['json'] }],
@ -68,7 +68,7 @@ export const KeymapConfigScreen = ({ themeId }: KeymapConfigScreenProps) => {
};
const handleExport = async () => {
const filePath = bridge().showSaveDialog({
const filePath = await bridge().showSaveDialog({
defaultPath: 'keymap-desktop',
filters: [{ name: 'Joplin Keymaps (keymap-desktop.json)', extensions: ['json'] }],
});