diff options
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r-- | src/lib/Menu.js | 13 |
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'; | |||
4 | import { isDevMode, isMac } from '../environment'; | 4 | import { isDevMode, isMac } from '../environment'; |
5 | 5 | ||
6 | const { app, Menu } = remote; | 6 | const { app, Menu } = remote; |
7 | const { app, Menu, dialog } = remote; | ||
7 | 8 | ||
8 | const template = [ | 9 | const 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; |