Update the vue starter template so the window icon works on Windows and all oses by default #663
Open
4 tasks done
Labels
enhancement
New feature or request
Clear and concise description of the problem
Currently for main process in new BrowserWindow the icon is set as
...(process.platform === 'linux' ? { icon } : {})
. The template already has a line to import an iconimport icon from '../../resources/icon.png?asset'
. For windows users the icon is not displayed on the new window because it is looking for linux.Suggested solution
I just changed that line to icon:icon and it worked fine. Maybe other logic is needed for the different oses I am not sure. But the icon should work out of the box for all oses..
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: