[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,11 +111,13 @@ class Notifier implements Subscribable {
openNotificationMenu () { openNotificationMenu () {
// Show all notifications that have not been cleared // Show all notifications that have not been cleared
if ( this.notifications.size > 0 ) {
this.menuOpen = true; this.menuOpen = true;
this.notifications.forEach( ( _, id ) => { this.notifications.forEach( ( _, id ) => {
this.show( id ); this.show( id );
} ) } )
} }
}
hideNotifications () { hideNotifications () {
this.menuOpen = false; this.menuOpen = false;