to make the windows volume mixer not explode as it can't resize icons.
I hate Windows. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
24a5297fc8
commit
25a0af6ddb
|
@ -70,10 +70,19 @@ exports.create = function(win, config) {
|
|||
// if its not default we have to construct into nativeImage
|
||||
if (newFavicon !== config.icon_path) {
|
||||
newFavicon = nativeImage.createFromDataURL(favicons[0]);
|
||||
}
|
||||
trayIcon.setImage(newFavicon);
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
newFavicon = newFavicon.resize({
|
||||
height: 40,
|
||||
width: 40,
|
||||
});
|
||||
}
|
||||
win.setIcon(newFavicon);
|
||||
} else {
|
||||
trayIcon.setImage(newFavicon);
|
||||
win.setIcon(newFavicon);
|
||||
}
|
||||
});
|
||||
|
||||
win.webContents.on('page-title-updated', function(ev, title) {
|
||||
|
|
Loading…
Reference in New Issue