fix: don't crash on tray.setContextMenu(null) (#14322)
This commit is contained in:
parent
fd27d75129
commit
a08ca9defb
4 changed files with 38 additions and 6 deletions
|
@ -275,7 +275,7 @@ The `position` is only available on Windows, and it is (0, 0) by default.
|
|||
|
||||
#### `tray.setContextMenu(menu)`
|
||||
|
||||
* `menu` Menu
|
||||
* `menu` Menu | null
|
||||
|
||||
Sets the context menu for this icon.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue