Skip to content

Commit 777f7ec

Browse files
committed
🎨
1 parent cd2d03e commit 777f7ec

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

main-process/native-ui/tray/tray.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ ipc.on('put-in-tray', function (event) {
1010
const iconName = process.platform === 'win32' ? 'windows-icon.png' : 'iconTemplate.png'
1111
const iconPath = path.join(__dirname, iconName)
1212
appIcon = new Tray(iconPath)
13-
const contextMenu = electron.Menu.buildFromTemplate([
14-
{ label: 'Remove',
15-
click: function (menuItem, browserWindow) {
16-
event.sender.send('tray-removed')
17-
appIcon.destroy()
18-
}
13+
const contextMenu = electron.Menu.buildFromTemplate([{
14+
label: 'Remove',
15+
click: function (menuItem, browserWindow) {
16+
event.sender.send('tray-removed')
17+
appIcon.destroy()
1918
}
20-
])
19+
}])
2120
appIcon.setToolTip('Electron Demo in the tray.')
2221
appIcon.setContextMenu(contextMenu)
2322
})

0 commit comments

Comments
 (0)