input: various fixes

This commit is contained in:
jean-emmanuel 2017-07-26 17:25:42 +02:00
parent 6b13d74971
commit 7c74ddd0ad
3 changed files with 13 additions and 36 deletions

View file

@ -21,19 +21,4 @@ app.on('window-all-closed', function() {
}
})
app.on('ready', () => {
tray = new Tray(path.resolve(__dirname + '/../../resources/images/logo.png'))
const contextMenu = Menu.buildFromTemplate([
{label: 'New client window', type: 'normal'},
{label: 'Item2', type: 'radio'}
])
// Make a change to the context menu
contextMenu.items[1].checked = false
tray.setToolTip(settings.read('appName'))
// Call this again for Linux because we modified the context menu
tray.setContextMenu(contextMenu)
})
module.exports = app