You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug FilePickerDialog uses Electron.remote.dialog.showOpenDialog for selecting multiple files and directories for opening (via the properties: ['openFile', 'openDirectory', 'multiSelections'] configuration). However, on Windows and Linux a single Electron.remote.dialog.showOpenDialog instance cannot be both a file selector and directory selector at the same time. If you set properties to ['openFile', 'openDirectory'] on these platforms, only a directory selector will be shown. This issue is noted in Electron's GitHub page here.
To Reproduce
Steps to reproduce the behavior:
Open Synectic with either a Windows or Linux machine.
Click on the OPEN FILE... button.
Navigate to a directory that contains a file.
See error.
Expected behavior
FilePickerDialog should show both files and directories, not just directories.
Screenshots
N/A.
Versions (please complete the following information):
Additional context
This bug was observed only on a Windows machine, but according to Electron's docs it is an issue that occurs on Linux machines as well.
The text was updated successfully, but these errors were encountered:
nelsonni
changed the title
FilePicker's Electron dialog doesn't show both files and directories on Windows and Linux
Electron.remote.dialog.showOpenDialog limits FilePicker dialog to directory selector on Windows and Linux
Jun 23, 2020
2ce4a7e introduces logic to display File -> Open File... and File -> Open Directory... options when the OS is Linux or Windows, and only File -> Open... on Mac. The important logic is:
Describe the bug
FilePickerDialog
usesElectron.remote.dialog.showOpenDialog
for selecting multiple files and directories for opening (via theproperties: ['openFile', 'openDirectory', 'multiSelections']
configuration). However, on Windows and Linux a singleElectron.remote.dialog.showOpenDialog
instance cannot be both a file selector and directory selector at the same time. If you setproperties
to['openFile', 'openDirectory']
on these platforms, only a directory selector will be shown. This issue is noted in Electron's GitHub page here.To Reproduce
Steps to reproduce the behavior:
OPEN FILE...
button.Expected behavior
FilePickerDialog should show both files and directories, not just directories.
Screenshots
N/A.
Versions (please complete the following information):
feature/branch-switching
).Additional context
This bug was observed only on a Windows machine, but according to Electron's docs it is an issue that occurs on Linux machines as well.
The text was updated successfully, but these errors were encountered: