Document why we do this.

This commit is contained in:
Half-Shot
2025-07-14 14:32:01 +01:00
parent 79b9ac896a
commit 2d21835588
+3
View File
@@ -21,6 +21,9 @@ ipcMain.on(
// each other. See https://github.com/vector-im/element-web/issues/16942 // each other. See https://github.com/vector-im/element-web/issues/16942
app.badgeCount = count; app.badgeCount = count;
} else { } 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) { if (imageBuffer && imageBufferDescription !== undefined) {
global.mainWindow?.setOverlayIcon( global.mainWindow?.setOverlayIcon(
nativeImage.createFromBuffer(Buffer.from(imageBuffer)), nativeImage.createFromBuffer(Buffer.from(imageBuffer)),