docs: app.getLoginItemStatus -> app.getLoginItemSettings (#15093)

This commit is contained in:
Sitong Peng 2018-10-12 06:23:37 -07:00 committed by John Kleinschmidt
parent d1b2d1a10e
commit 9e7bbcd8f6

View file

@ -995,7 +995,7 @@ Returns `Object`:
the app as a login item. Defaults to `false`. the app as a login item. Defaults to `false`.
* `openAsHidden` Boolean (optional) _macOS_ - `true` to open the app as hidden. Defaults to * `openAsHidden` Boolean (optional) _macOS_ - `true` to open the app as hidden. Defaults to
`false`. The user can edit this setting from the System Preferences so `false`. The user can edit this setting from the System Preferences so
`app.getLoginItemStatus().wasOpenedAsHidden` should be checked when the app `app.getLoginItemSettings().wasOpenedAsHidden` should be checked when the app
is opened to know the current value. This setting is not available on [MAS builds][mas-builds]. is opened to know the current value. This setting is not available on [MAS builds][mas-builds].
* `path` String (optional) _Windows_ - The executable to launch at login. * `path` String (optional) _Windows_ - The executable to launch at login.
Defaults to `process.execPath`. Defaults to `process.execPath`.