How to set Electron file dialog to modal? #13037
-
Hello. I want to open the file dialogue on the same screen as the application. Now it always opens on the main screen. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
In the meantime I made a workaround to fix it in our app, but I think there must be a better way. |
Beta Was this translation helpful? Give feedback.
-
Hi @zole40 There's currently no way to set the modal option via a preference.
If you want all open and save dialogs created by the service to always be modal, then your workaround is the way to go. Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hi @zole40
There's currently no way to set the modal option via a preference.
The expectation is that the callers of the FileDialogService pass themodal
prop in the arguments, for example:If you want all open and save dialogs created by the service to always be modal, then your workaround is the way to go.
Hope this helps!