From 61af39bad2764c388abb770cf4be344d34c9a503 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Tue, 4 Mar 2025 09:04:38 -0500 Subject: [PATCH] Reset Unity notification count on focus --- src/notificationsMonitor.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/notificationsMonitor.js b/src/notificationsMonitor.js index ca3016a..0f8aaa4 100644 --- a/src/notificationsMonitor.js +++ b/src/notificationsMonitor.js @@ -98,7 +98,13 @@ export const NotificationsMonitor = class extends EventEmitter { } _getDefaultState() { - return { trayCount: 0, trayUrgent: false, urgent: false, total: 0 } + return { + count: 0, // Unity + trayCount: 0, // MessageTray + trayUrgent: false, // MessageTray + urgent: false, // Unity add MessageTray combined + total: 0, // Unity add MessageTray combined + } } getState(app) {