Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat(Menu): Add "About Franz" Menu item to Windows/Linux
- Loading branch information
Showing
with
13 additions
and
0 deletions.
-
+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; |
|
|