Created
February 27, 2020 16:18
-
-
Save trevorfoskett/6a7fac3df4d0c59bcd42de0054952dbc to your computer and use it in GitHub Desktop.
Main thread registers the button click event and opens the file dialog to select filepaths.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipcMain.on('open-file-dialog', async (event) => { | |
var paths = dialog.showOpenDialogSync(win, { | |
properties: ['openFile', 'multiSelections'] | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment