- onenote.git
- src
- electron
- main
- create
- tray.js
This file ( 550B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
const { Menu, Tray } = require('electron')
const menus = require('../menus');
const action = require('../action');
function mainTray() {
if (global.p3x.onenote.tray === undefined) {
global.p3x.onenote.tray = new Tray(global.p3x.onenote.iconFile)
global.p3x.onenote.tray.setToolTip(global.p3x.onenote.title)
global.p3x.onenote.tray.on('click', action.toggleVisible)
}
const contextMenu = Menu.buildFromTemplate(menus.default())
global.p3x.onenote.tray.setContextMenu(contextMenu)
}
module.exports = mainTray;