Added license notice. RPS-19

This commit is contained in:
Patrick Fic
2020-10-26 13:19:53 -07:00
parent 1e477b258d
commit ad48326dc0
2 changed files with 23032 additions and 0 deletions

23006
electron/licenses.txt Normal file

File diff suppressed because one or more lines are too long

View File

@@ -88,11 +88,18 @@ var menu = Menu.buildFromTemplate([
shell.openPath(path.join(app.getPath("appData"), "ImeX RPS\\logs"));
},
},
{
label: "Third Party Notices",
click() {
openNoticeWindow();
},
},
],
},
]);
let mainWindow;
let noticeWindow;
let tray = null;
function createWindow() {
// Create the browser window.
@@ -275,3 +282,22 @@ autoUpdater.on("update-downloaded", (ev, info) => {
);
}
});
function openNoticeWindow() {
if (noticeWindow) {
noticeWindow.focus();
return;
}
noticeWindow = new BrowserWindow({
height: 600,
width: 800,
title: "ImEX RPS - Third Party Notices",
});
noticeWindow.loadURL("file://" + __dirname + "/licenses.txt");
noticeWindow.on("closed", function () {
noticeWindow = null;
});
}