Permalink
Browse files

feat(Menu): Add "About Franz" Menu item to Windows/Linux

  • Loading branch information...
adlk committed Oct 27, 2017
1 parent c9f2aec commit a21b7706cd9a12db31bdb64a881365a4cc5cbb08
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/lib/Menu.js
@@ -4,6 +4,7 @@ import { autorun, computed, observable, toJS } from 'mobx';
import { isDevMode, isMac } from '../environment';
const { app, Menu } = remote;
const { app, Menu, dialog } = remote;
const template = [
{
@@ -218,6 +219,18 @@ export default class FranzMenu {
role: 'front',
},
];
} else {
tpl[4].submenu.unshift({
role: 'about',
click: () => {
dialog.showMessageBox({
type: 'info',
title: 'Franz',
message: 'Franz',
detail: `Version: ${remote.app.getVersion()}\nRelease: ${process.versions.electron} / ${process.platform} / ${process.arch}`,
});
},
});
}
const serviceTpl = this.serviceTpl;

0 comments on commit a21b770

Please sign in to comment.