aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-13 11:44:22 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-13 11:50:17 +0530
commitaf56a07359400e53cb3096e321bf6ee1bae12068 (patch)
tree10aeed9aa2650d45c81cff9930ad36b7cac86c3b /src/lib
parentBetter implementation of confirmation while quitting Ferdi (#1919) (diff)
downloadferdium-app-af56a07359400e53cb3096e321bf6ee1bae12068.tar.gz
ferdium-app-af56a07359400e53cb3096e321bf6ee1bae12068.tar.zst
ferdium-app-af56a07359400e53cb3096e321bf6ee1bae12068.zip
refactor: reuse method from the core electron framework for the 'About' dialog.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Menu.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index 5aa575df7..5dae56544 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -1,5 +1,5 @@
1import { clipboard } from 'electron'; 1import { clipboard } from 'electron';
2import { app, Menu, dialog, systemPreferences } from '@electron/remote'; 2import { app, Menu, systemPreferences } from '@electron/remote';
3import { autorun, observable } from 'mobx'; 3import { autorun, observable } from 'mobx';
4import { defineMessages } from 'react-intl'; 4import { defineMessages } from 'react-intl';
5import { 5import {
@@ -14,7 +14,6 @@ import {
14 settingsShortcutKey, 14 settingsShortcutKey,
15 isLinux, 15 isLinux,
16 isMac, 16 isMac,
17 aboutAppDetails,
18 lockFerdiShortcutKey, 17 lockFerdiShortcutKey,
19 todosToggleShortcutKey, 18 todosToggleShortcutKey,
20 workspaceToggleShortcutKey, 19 workspaceToggleShortcutKey,
@@ -806,12 +805,7 @@ export default class FranzMenu {
806 const about = { 805 const about = {
807 label: intl.formatMessage(menuItems.about), 806 label: intl.formatMessage(menuItems.about),
808 click: () => { 807 click: () => {
809 dialog.showMessageBox({ 808 app.showAboutPanel();
810 type: 'info',
811 title: 'Franz Ferdinand',
812 message: 'Ferdi',
813 detail: aboutAppDetails(),
814 });
815 }, 809 },
816 }; 810 };
817 811