mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: clarify that 'second-instance' is only emitted when the second instance calls app.requestSingleInstanceLock() (#18272)
This commit is contained in:
committed by
Charles Kerr
parent
e39c76bfe1
commit
1941a46825
@@ -404,8 +404,10 @@ Returns:
|
||||
* `workingDirectory` String - The second instance's working directory
|
||||
|
||||
This event will be emitted inside the primary instance of your application
|
||||
when a second instance has been executed. `argv` is an Array of the second instance's
|
||||
command line arguments, and `workingDirectory` is its current working directory. Usually
|
||||
when a second instance has been executed and calls `app.requestSingleInstanceLock()`.
|
||||
|
||||
`argv` is an Array of the second instance's command line arguments,
|
||||
and `workingDirectory` is its current working directory. Usually
|
||||
applications respond to this by making their primary window focused and
|
||||
non-minimized.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user