Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Create About dialog for other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Apr 24, 2017
1 parent 0c7036a commit 4fa4949
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4fa4949

Please sign in to comment.