From cd525157c555bd720b702c96124b3fe7774a4ee3 Mon Sep 17 00:00:00 2001 From: "Bruno St. John" Date: Mon, 13 Feb 2023 00:55:04 +0000 Subject: [PATCH] squirrel fixes --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 2c10ac0..03dcb93 100644 --- a/main.js +++ b/main.js @@ -228,10 +228,10 @@ const createWindow = () => { icon: path.join(__dirname, "assets", "images", "favicon.ico") }) mainWindow.loadFile("assets/ui/themes.html"); - // mainWindow.removeMenu(); + mainWindow.removeMenu(); } -let worker = new Worker("./libraries/renderer.js", { workerData: {renderPath: config.defaultThemePath, fps: fps} }); +let worker = new Worker(path.join(__dirname, "libraries", "renderer.js"), { workerData: {renderPath: config.defaultThemePath, fps: fps} }); worker.on("error", err => { console.log(err); @@ -410,7 +410,7 @@ function applyParameters(_event, parameters) { worker.terminate(); const theme = require(item.path); item.preview = "data:image/jpeg;base64," + theme.renderPreview(); - worker = new Worker("./libraries/renderer.js", { workerData: {renderPath: item.path, fps: fps} }); // worker needs to be destroyed for on the fly editing to work + worker = new Worker(path.join(__dirname, "libraries", "renderer.js"), { workerData: {renderPath: item.path, fps: fps} }); // worker needs to be destroyed for on the fly editing to work if(rendering) { startRendering(); }