message: Add safety check for toggle developer tools
diff: @@ -196,7 +196,8 @@ function getTemplate(app) {
  accelerator: isMac ? 'Alt+Command+I' : 'Ctrl+Shift+I',
  click(item, focusedWindow) {
  let devToolsEnabled = readConfigFromFile('devToolsEnabled');
  - if (focusedWindow && devToolsEnabled) {
  + if (focusedWindow && !focusedWindow.isDestroyed()) {
  + if (devToolsEnabled) {
  focusedWindow.webContents.toggleDevTools();
  } else {
  log.send(logLevels.INFO, `dev tools disabled for ${focusedWindow.winName} window`);
  @@ -208,6 +209,7 @@ function getTemplate(app) {
  });
  }
  }
  + }
  },
  {
  label: i18n.getMessageFor('More Information'),
  