Skip to content

Commit

Permalink
feat(Menu): Add "About Franz" Menu item to Windows/Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Oct 27, 2017
1 parent c9f2aec commit a21b770
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a21b770

Please sign in to comment.