mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-20 15:26:06 +08:00
Fix sendto functionality by correctly handling electron internal options (#2409)
This commit is contained in:
parent
c6815cb535
commit
3dc02161e5
|
@ -86,6 +86,13 @@ const declareOptions = argv => {
|
|||
'safe',
|
||||
'Do not load packages from the settings `packages` or `dev/packages` folders.'
|
||||
);
|
||||
// The options --enable-crashpad and --allow-file-access-from-files are added to the command line options by electron when opening a second instance of Mailspring.
|
||||
// If they are not defined as boolean options here, they will "swallow" every argument that is passed after them. This leads to the "Send To" functionality not working
|
||||
// if mailspring is already running.
|
||||
options
|
||||
.boolean('enable-crashpad')
|
||||
options
|
||||
.boolean('allow-file-access-from-files')
|
||||
options
|
||||
.alias('h', 'help')
|
||||
.boolean('h')
|
||||
|
|
Loading…
Reference in a new issue