We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 777f7ec commit 9cddbccCopy full SHA for 9cddbcc
main-process/native-ui/tray/tray.js
@@ -2,6 +2,7 @@ const path = require('path')
2
const electron = require('electron')
3
const ipc = electron.ipcMain
4
const app = electron.app
5
+const Menu = electron.Menu
6
const Tray = electron.Tray
7
8
let appIcon = null
@@ -10,7 +11,7 @@ ipc.on('put-in-tray', function (event) {
10
11
const iconName = process.platform === 'win32' ? 'windows-icon.png' : 'iconTemplate.png'
12
const iconPath = path.join(__dirname, iconName)
13
appIcon = new Tray(iconPath)
- const contextMenu = electron.Menu.buildFromTemplate([{
14
+ const contextMenu = Menu.buildFromTemplate([{
15
label: 'Remove',
16
click: function (menuItem, browserWindow) {
17
event.sender.send('tray-removed')
0 commit comments