Added license notice. RPS-19
This commit is contained in:
23006
electron/licenses.txt
Normal file
23006
electron/licenses.txt
Normal file
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user