fixed opening files on mac #206 #243

This commit is contained in:
Jan Prochazka
2022-04-10 10:57:31 +02:00
parent 12a638af3b
commit 05619faa7a
4 changed files with 12 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
if (!electron) return;
const filePaths = await electron.showOpenDialog({
defaultPath: values[name],
properties: ['showHiddenFiles'],
properties: ['showHiddenFiles', 'openFile'],
filters: [{ name: 'All Files', extensions: ['*'] }],
});
const filePath = filePaths && filePaths[0];