diff --git a/src/tray.js b/src/tray.js index e6b308247..47d946979 100644 --- a/src/tray.js +++ b/src/tray.js @@ -56,6 +56,11 @@ function buildMenu (ctx) { enabled: false, icon: path.resolve(path.join(__dirname, `../assets/icons/status/${color}.png`)) })), + { + id: 'numberOfPeers', + label: 'Foo' + ' ' + i18n.t('peers'), + enabled: false + }, { id: 'restartIpfs', label: i18n.t('restart'), @@ -258,7 +263,7 @@ module.exports = function (ctx) { menu = buildMenu(ctx) tray.setContextMenu(menu) - tray.setToolTip('IPFS Desktop') + tray.setToolTip('Foo' + ' ' + i18n.t('peers')) menu.on('menu-will-show', () => { ipcMain.emit('menubar-will-open') }) menu.on('menu-will-close', () => { ipcMain.emit('menubar-will-close') }) @@ -277,6 +282,8 @@ module.exports = function (ctx) { menu.getMenuItemById('ipfsHasErrored').visible = errored && !gcRunning menu.getMenuItemById('runningWithGC').visible = gcRunning + menu.getMenuItemById('numberOfPeers').visible = status === STATUS.STARTING_FINISHED && !gcRunning + menu.getMenuItemById('startIpfs').visible = status === STATUS.STOPPING_FINISHED menu.getMenuItemById('stopIpfs').visible = status === STATUS.STARTING_FINISHED menu.getMenuItemById('restartIpfs').visible = (status === STATUS.STARTING_FINISHED || errored)