Add icon to the window manually on creation (#1735)
This supplements the work we already do to tell the OS about our icon.
This commit is contained in:
parent
f7140af9cb
commit
1fdaa00660
2 changed files with 4 additions and 1 deletions
3
main.js
3
main.js
|
@ -104,7 +104,8 @@ function createWindow () {
|
|||
nodeIntegration: false,
|
||||
//sandbox: true,
|
||||
preload: path.join(__dirname, 'preload.js')
|
||||
}
|
||||
},
|
||||
icon: __dirname + '/build/icons/png/512x512.png',
|
||||
}, windowConfig);
|
||||
|
||||
if (windowOptions.fullscreen === false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue