electron always dev tools

This commit is contained in:
Olivier Gagnon 2021-09-23 13:15:27 -04:00
parent e6291a09a0
commit cdd9c174e7
2 changed files with 4 additions and 3 deletions

@ -5,7 +5,7 @@ function createWindow() {
const win = new BrowserWindow({ const win = new BrowserWindow({
show: false, show: false,
webPreferences: { webPreferences: {
devTools: false, devTools: true,
}, },
}); });
@ -13,7 +13,7 @@ function createWindow() {
win.maximize(); win.maximize();
win.loadFile("index.html"); win.loadFile("index.html");
win.show(); win.show();
// win.webContents.openDevTools(); win.webContents.openDevTools();
globalShortcut.register("f5", function () { globalShortcut.register("f5", function () {
win.loadFile("index.html"); win.loadFile("index.html");
}); });

@ -480,7 +480,8 @@ export function queryStatFromString(str) {
/******* Working functions *******/ /******* Working functions *******/
export function resetWorkStatus(generalType, group, workType) { export function resetWorkStatus(generalType, group, workType) {
if (generalType === this.workType && group === this.companyName) return; if (this.workType !== CONSTANTS.WorkTypeFaction && generalType === this.workType && group === this.companyName)
return;
if (generalType === this.workType && group === this.currentWorkFactionName && workType === this.factionWorkType) if (generalType === this.workType && group === this.currentWorkFactionName && workType === this.factionWorkType)
return; return;
if (this.isWorking) this.singularityStopWork(); if (this.isWorking) this.singularityStopWork();