mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #12496 from mikeykhalil/8952-ignore-tray-double-click-events
8952 option to ignore tray double click events
This commit is contained in:
@@ -241,6 +241,19 @@ win.on('hide', () => {
|
||||
})
|
||||
```
|
||||
|
||||
#### `tray.setIgnoreDoubleClickEvents(ignore)` _macOS_
|
||||
|
||||
* `ignore` Boolean
|
||||
|
||||
Sets the option to ignore double click events. Ignoring these events allows you
|
||||
to detect every individual click of the tray icon.
|
||||
|
||||
This value is set to false by default.
|
||||
|
||||
### `tray.getIgnoreDoubleClickEvents()` _macOS_
|
||||
|
||||
Returns `Boolean` - Whether double click events will be ignored.
|
||||
|
||||
#### `tray.displayBalloon(options)` _Windows_
|
||||
|
||||
* `options` Object
|
||||
|
||||
Reference in New Issue
Block a user