fixing consistency checks

This commit is contained in:
zadam
2021-09-08 21:54:26 +02:00
parent f24ea8137b
commit 151687cd9b
3 changed files with 13 additions and 28 deletions

View File

@@ -52,11 +52,6 @@ async function createMainWindow() {
const {BrowserWindow} = require('electron'); // should not be statically imported
const nativeImage = require('electron').nativeImage
const image = nativeImage.createFromPath(getIcon())
console.log(image)
mainWindow = new BrowserWindow({
x: mainWindowState.x,
y: mainWindowState.y,
@@ -70,7 +65,7 @@ async function createMainWindow() {
spellcheck: spellcheckEnabled
},
frame: optionService.getOptionBool('nativeTitleBarVisible'),
icon: image
icon: getIcon()
});
mainWindowState.manage(mainWindow);