refactor: make applicationMenu a property on app (#17361)

This commit is contained in:
Shelley Vohr 2019-04-02 13:36:57 -07:00 committed by GitHub
parent d412582f72
commit 0431997c8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 1 deletions

View file

@ -1332,6 +1332,11 @@ Sets the `image` associated with this dock icon.
## Properties
### `app.applicationMenu`
A `Menu` property that return [`Menu`](menu.md) if one has been set and `null` otherwise.
Users can pass a [Menu](menu.md) to set this property.
### `app.isPackaged`
A `Boolean` property that returns `true` if the app is packaged, `false` otherwise. For many apps, this property can be used to distinguish development and production environments.