File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
main-process/native-ui/tray Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ ipc.on('put-in-tray', function (event) {
10
10
const iconName = process . platform === 'win32' ? 'windows-icon.png' : 'iconTemplate.png'
11
11
const iconPath = path . join ( __dirname , iconName )
12
12
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 ( )
19
18
}
20
- ] )
19
+ } ] )
21
20
appIcon . setToolTip ( 'Electron Demo in the tray.' )
22
21
appIcon . setContextMenu ( contextMenu )
23
22
} )
You can’t perform that action at this time.
0 commit comments