[Notifications] Only enable menu if there are notifications

This commit is contained in:
Admin 2025-03-31 17:52:12 +02:00
parent 791f10aad4
commit dda261ac3c

View File

@ -111,10 +111,12 @@ class Notifier implements Subscribable {
openNotificationMenu () {
// Show all notifications that have not been cleared
this.menuOpen = true;
this.notifications.forEach( ( _, id ) => {
this.show( id );
} )
if ( this.notifications.size > 0 ) {
this.menuOpen = true;
this.notifications.forEach( ( _, id ) => {
this.show( id );
} )
}
}
hideNotifications () {