When selecting multiple notes for PDF export, if the user clicks "Export" > "PDF" and then cancels the operation, an error dialog is displayed.
This error occurs because the code expects a string from bridge().showOpenDialog(), but receives an empty array instead, leading to a failure in processing the cancellation.
Expected behaviour
Expected Behavior
When the user cancels the bulk PDF export by clicking "Cancel," no error dialog should be shown.
The application should correctly handle the return value of bridge().showOpenDialog(), accounting for the possibility of receiving an empty array.
If the user proceeds with the export, the application should correctly export the selected notes to the specified directory without any errors.
Operating system
Linux
Joplin version
3.0.13
Desktop version info
No response
Current behaviour
Current Behavior
bridge().showOpenDialog()
, but receives an empty array instead, leading to a failure in processing the cancellation.Expected behaviour
Expected Behavior
bridge().showOpenDialog()
, accounting for the possibility of receiving an empty array.Logs
No response