Skip to content

Commit

Permalink
squirrel fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunostjohn committed Feb 13, 2023
1 parent 3d031d5 commit cd52515
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit cd52515

Please sign in to comment.