Added a check if there is any notifications.

Notification: add notificationModel.count check to possibly prevent
unwanted behaviour
This commit is contained in:
Ly-sec 2025-08-28 10:51:18 +02:00
parent de465ebcba
commit 85b92d9c6f

View file

@ -25,7 +25,7 @@ Variants {
property var removingNotifications: ({})
// If no notification display activated in settings, then show them all
active: Settings.isLoaded && modelData ? (Settings.data.notifications.monitors.includes(modelData.name)
active: Settings.isLoaded && modelData && (NotificationService.notificationModel.count > 0) ? (Settings.data.notifications.monitors.includes(modelData.name)
|| (Settings.data.notifications.monitors.length === 0)) : false
visible: (NotificationService.notificationModel.count > 0)