Move code; drop favicon updating for win32

This commit is contained in:
Will Hunt
2025-07-15 13:55:04 +01:00
parent f91c07f929
commit 7c19e5f0a8
4 changed files with 38 additions and 60 deletions
-12
View File
@@ -20,18 +20,6 @@ ipcMain.on(
// has some Windows support too, and in some Windows environments this leads to two badges rendering atop
// each other. See https://github.com/vector-im/element-web/issues/16942
app.badgeCount = count;
} else {
// similarly, we only use setOverlayIcon on Windows as it's only supported on that platform, but has good support
// from all the Windows variants we support.
// https://www.electronjs.org/docs/latest/api/browser-window#winsetoverlayiconoverlay-description-windows
if (imageBuffer && imageBufferDescription !== undefined) {
global.mainWindow?.setOverlayIcon(
nativeImage.createFromBuffer(Buffer.from(imageBuffer)),
imageBufferDescription,
);
} else {
global.mainWindow?.setOverlayIcon(null, "");
}
}
if (count === 0) {
global.mainWindow?.flashFrame(false);