Skip to content
Permalink
Browse files

feat(Menu): Add menu item to toggle (service) dev tools

  • Loading branch information
adlk committed Oct 27, 2017
1 parent 37d5923 commit e8da383d440445f7c28165e073d78c36b86b8b32
Showing with 10 additions and 12 deletions.
  1. +10 −12 src/lib/Menu.js
@@ -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;

@@ -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',

0 comments on commit e8da383

Please sign in to comment.
You can’t perform that action at this time.