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

Fix Copyright date range - Closes #287 #293

Merged
merged 3 commits into from
Jun 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { BrowserWindow } = electron;
const { Menu } = electron;

let win;
const copyright = `Copyright © 2016 - ${new Date().getFullYear()} Lisk Foundation`;

function createWindow() {
const { width, height } = electron.screen.getPrimaryDisplay().workAreaSize;
Expand Down Expand Up @@ -124,7 +125,7 @@ function createWindow() {
const options = {
buttons: ['OK'],
icon: `${__dirname}/assets/lisk.png`,
message: `Lisk Nano\nVersion ${app.getVersion()}\nCopyright © 2017 Lisk Foundation`,
message: `Lisk Nano\nVersion ${app.getVersion()}\n${copyright}`,
};
electron.dialog.showMessageBox(focusedWindow, options, () => {});
}
Expand Down Expand Up @@ -174,6 +175,12 @@ app.on('window-all-closed', () => {
}
});

// This will override the values defined in the app’s .plist file (macOS)
app.setAboutPanelOptions({
applicationName: 'Lisk Nano',
copyright,
});

app.on('activate', () => {
if (win === null) {
createWindow();
Expand Down