From 1612c2abc4a9c1423388510b7cffb256ce811493 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 14 Sep 2021 05:57:08 +0530 Subject: Revert "refactor: reuse method from the core electron framework for the 'About' dialog." This reverts commit af56a07359400e53cb3096e321bf6ee1bae12068. Fixes #1928 and #1929 --- src/lib/Menu.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/lib/Menu.js') diff --git a/src/lib/Menu.js b/src/lib/Menu.js index d7f3dbecf..623638d33 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js @@ -1,5 +1,5 @@ import { clipboard } from 'electron'; -import { app, Menu, systemPreferences } from '@electron/remote'; +import { app, Menu, dialog, systemPreferences } from '@electron/remote'; import { autorun, observable } from 'mobx'; import { defineMessages } from 'react-intl'; import { @@ -14,6 +14,7 @@ import { settingsShortcutKey, isLinux, isMac, + aboutAppDetails, lockFerdiShortcutKey, todosToggleShortcutKey, workspaceToggleShortcutKey, @@ -804,7 +805,12 @@ class FranzMenu { const about = { label: intl.formatMessage(menuItems.about), click: () => { - app.showAboutPanel(); + dialog.showMessageBox({ + type: 'info', + title: 'Franz Ferdinand', + message: 'Ferdi', + detail: aboutAppDetails(), + }); }, }; -- cgit v1.2.3-54-g00ecf