RSS Git Download  Clone
Raw View History
Blames found: 10 Mode: javascript Binary: false


Hang on, we reloading big blames...
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} v${global.p3x.onenote.pkg.version}`)
const click = () => {
console.info('tray on click is executed - if not shown in console. this click is not executed.') action.toggleVisible()
} global.p3x.onenote.tray.on('click', click)
} const contextMenu = Menu.buildFromTemplate(menus.default()) global.p3x.onenote.tray.setContextMenu(contextMenu) }
module.exports = mainTray;