aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-27 15:09:26 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-10-27 15:09:26 +0200
commita21b7706cd9a12db31bdb64a881365a4cc5cbb08 (patch)
treec35927e61278666547c5bc32aab3209ba736da8d /src/lib
parentMerge pull request #141 from DBozhinovski/master (diff)
downloadferdium-app-a21b7706cd9a12db31bdb64a881365a4cc5cbb08.tar.gz
ferdium-app-a21b7706cd9a12db31bdb64a881365a4cc5cbb08.tar.zst
ferdium-app-a21b7706cd9a12db31bdb64a881365a4cc5cbb08.zip
feat(Menu): Add "About Franz" Menu item to Windows/Linux
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Menu.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index a6cde4d36..d828f8e1a 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -4,6 +4,7 @@ import { autorun, computed, observable, toJS } from 'mobx';
4import { isDevMode, isMac } from '../environment'; 4import { isDevMode, isMac } from '../environment';
5 5
6const { app, Menu } = remote; 6const { app, Menu } = remote;
7const { app, Menu, dialog } = remote;
7 8
8const template = [ 9const template = [
9 { 10 {
@@ -218,6 +219,18 @@ export default class FranzMenu {
218 role: 'front', 219 role: 'front',
219 }, 220 },
220 ]; 221 ];
222 } else {
223 tpl[4].submenu.unshift({
224 role: 'about',
225 click: () => {
226 dialog.showMessageBox({
227 type: 'info',
228 title: 'Franz',
229 message: 'Franz',
230 detail: `Version: ${remote.app.getVersion()}\nRelease: ${process.versions.electron} / ${process.platform} / ${process.arch}`,
231 });
232 },
233 });
221 } 234 }
222 235
223 const serviceTpl = this.serviceTpl; 236 const serviceTpl = this.serviceTpl;