Skip to content

Commit

Permalink
feat(Menu): Add menu item to toggle (service) dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Oct 27, 2017
1 parent 37d5923 commit e8da383
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/lib/Menu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { remote, shell } from 'electron';
import { autorun, computed, observable, toJS } from 'mobx';

import { isDevMode, isMac } from '../environment';
import { isMac } from '../environment';

const { app, Menu } = remote;

Expand Down Expand Up @@ -101,17 +101,15 @@ export default class FranzMenu {
_build() {
const tpl = toJS(this.tpl);

if (isDevMode) {
tpl[1].submenu.push({
role: 'toggledevtools',
}, {
label: 'Toggle Service Developer Tools',
accelerator: 'CmdOrCtrl+Shift+Alt+i',
click: () => {
this.actions.service.openDevToolsForActiveService();
},
});
}
tpl[1].submenu.push({
role: 'toggledevtools',
}, {
label: 'Toggle Service Developer Tools',
accelerator: 'CmdOrCtrl+Shift+Alt+i',
click: () => {
this.actions.service.openDevToolsForActiveService();
},
});

tpl[1].submenu.unshift({
label: 'Reload Service',
Expand Down

0 comments on commit e8da383

Please sign in to comment.