@lvce-editor/status-bar-worker 3.15.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1621,9 +1621,13 @@ const handleNotificationCountChanged = (state, count) => {
|
|
|
1621
1621
|
if (!notificationsEnabled) {
|
|
1622
1622
|
return state;
|
|
1623
1623
|
}
|
|
1624
|
+
const [notificationItem] = getNotificationsStatusBarItem(true, count);
|
|
1625
|
+
if (!notificationItem) {
|
|
1626
|
+
return state;
|
|
1627
|
+
}
|
|
1624
1628
|
return {
|
|
1625
1629
|
...state,
|
|
1626
|
-
statusBarItemsRight:
|
|
1630
|
+
statusBarItemsRight: statusBarItemsRight.map(item => item.name === Notifications ? notificationItem : item)
|
|
1627
1631
|
};
|
|
1628
1632
|
};
|
|
1629
1633
|
|