forked from CringeStudios/element-desktop
Don't double up app badge on Windows
This commit is contained in:
parent
dde3bb3caf
commit
344d473e9b
@ -89,7 +89,11 @@ export function create(config: IConfig): void {
|
||||
}
|
||||
|
||||
trayIcon?.setImage(newFavicon);
|
||||
global.mainWindow?.setIcon(newFavicon);
|
||||
|
||||
// Don't set the main window icon on Windows as we call Navigator::setAppBadge to do it for us
|
||||
if (process.platform !== "win32") {
|
||||
global.mainWindow?.setIcon(newFavicon);
|
||||
}
|
||||
});
|
||||
|
||||
global.mainWindow?.webContents.on("page-title-updated", function (ev, title) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user