Documented manager code

This commit is contained in:
Pax1601
2024-01-03 15:08:06 +01:00
parent 7bf6c1bb23
commit a0634a7f99
11 changed files with 263 additions and 82 deletions

View File

@@ -5,6 +5,7 @@ const path = require('path');
let window;
/* Add the System32 folder to the environment for the shortcuts creation to work properly */
process.env['PATH'] = process.env['PATH'] + "%WINDIR%\\System32;"
function createWindow() {
@@ -17,7 +18,7 @@ function createWindow() {
webPreferences: {
contextIsolation: true,
preload: path.join(__dirname, "javascripts", 'preload.js'),
nodeIntegration: true, // like here
nodeIntegration: true,
},
icon: "./../img/olympus_configurator.ico"
});
@@ -51,8 +52,6 @@ electronApp.on('activate', () => {
}
});
// ---
electronIpcMain.on('window:minimize', () => {
window.minimize();
})