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 menu = menus.default()
const contextMenu = Menu.buildFromTemplate(menu)
global.p3x.onenote.tray.setContextMenu(contextMenu)
} else if (global.p3x.onenote.tray !== undefined) {
app.relaunch()
app.exit()
}
})