mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-02-20 14:50:41 +01:00
Only set badgeCount on Mac/Linux because Windows is made of fail
This commit is contained in:
parent
f5ee82a8ca
commit
b662846bf1
@ -325,7 +325,12 @@ process.on('uncaughtException', function(error) {
|
||||
|
||||
let focusHandlerAttached = false;
|
||||
ipcMain.on('setBadgeCount', function(ev, count) {
|
||||
app.badgeCount = count;
|
||||
if (process.platform !== 'win32') {
|
||||
// only set badgeCount on Mac/Linux, the docs say that only those platforms support it but turns out Electron
|
||||
// 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;
|
||||
}
|
||||
if (count === 0 && mainWindow) {
|
||||
mainWindow.flashFrame(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user