mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
refactor: make applicationMenu a property on app (#17361)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user