diff --git a/CHANGELOG.md b/CHANGELOG.md index 4227abeb..d8845201 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - text: `wrap` property doesn't break words by default anymore - rgb: added `range` property - launcher - - right-click context menu (copy, paste, clear console, toggle console autoscoll) + - right-click context menu (copy, paste, clear console, toggle console autoscoll, relaunch app) - better font for the console ## 0.27.2 diff --git a/app/main/launcher/launcher.js b/app/main/launcher/launcher.js index 35b6b339..16b839de 100644 --- a/app/main/launcher/launcher.js +++ b/app/main/launcher/launcher.js @@ -1,5 +1,5 @@ var {remote, ipcRenderer, shell} = require('electron'), - {dialog, webContents, Menu, MenuItem} = remote.require('electron'), + {dialog, webContents, Menu, MenuItem, app} = remote.require('electron'), menu = new Menu(), settings = remote.require('./main/settings'), packageInfos = remote.require('./package.json') @@ -231,6 +231,15 @@ $(document).ready(()=>{ } }) ]})) + menu.append(new MenuItem({type: 'submenu' , label: 'App', submenu: [ + new MenuItem({ + label: 'Relaunch', + click: ()=>{ + app.relaunch() + app.exit(0) + } + }), + ]})) window.addEventListener('contextmenu', function (e) {