mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-30 11:33:36 +00:00
badge-count: Show badge-count on Linux.
Added support for showing the badge counts in the Unity launcher. This should work on elementary OS and Ubuntu. More info - https://github.com/electron/electron/issues/16001 https://github.com/signalapp/Signal-Desktop/issues/3387
This commit is contained in:
@@ -18,11 +18,11 @@ class BadgeSettings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showBadgeCount(messageCount: number, mainWindow: electron.BrowserWindow): void {
|
showBadgeCount(messageCount: number, mainWindow: electron.BrowserWindow): void {
|
||||||
if (process.platform === 'darwin') {
|
|
||||||
app.setBadgeCount(messageCount);
|
|
||||||
}
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
this.updateOverlayIcon(messageCount, mainWindow);
|
this.updateOverlayIcon(messageCount, mainWindow);
|
||||||
|
} else {
|
||||||
|
// This should work on both macOS and Linux
|
||||||
|
app.setBadgeCount(messageCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user