Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions shared/desktop/app/menu-bar.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,14 @@ const MenuBar = () => {
// to be used as an overlay in the bottom right of the taskbar icon.
if (isWindows) {
const mw = getMainWindow()
const overlay =
action.payload.desktopAppBadgeCount > 0
? getAssetPath('images', 'icons', 'icon-windows-badge.png')
: null
overlay && mw?.setOverlayIcon(Electron.nativeImage.createFromPath(overlay), 'new activity')
if (action.payload.desktopAppBadgeCount > 0) {
mw?.setOverlayIcon(
Electron.nativeImage.createFromPath(getAssetPath('images', 'icons', 'icon-windows-badge.png')),
'new activity'
)
} else {
mw?.setOverlayIcon(null, '')
}
}

break
Expand Down