From 4fa49493c151193939b16bfe31a29f71e3c80a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Stanislav?= Date: Wed, 19 Apr 2017 15:45:06 +0200 Subject: [PATCH] Create About dialog for other platforms --- app/main.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/main.js b/app/main.js index dab81d12b..140a3c4e3 100644 --- a/app/main.js +++ b/app/main.js @@ -59,6 +59,25 @@ function createWindow() { }, ], }); + } else { + template.push({ + label: "Help", + submenu: [ + { + label: 'About', + click: function (item, focusedWindow) { + if (focusedWindow) { + const options = { + buttons: ['OK'], + icon: `${__dirname}/assets/lisk.png`, + message: `Lisk Nano\nVersion ${app.getVersion()}\nCopyright © 2017 Lisk Foundation`, + } + electron.dialog.showMessageBox(focusedWindow, options, function () {}) + } + } + } + ] + }); } const menu = Menu.buildFromTemplate(template);