input: various fixes
This commit is contained in:
parent
6b13d74971
commit
7c74ddd0ad
3 changed files with 13 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue