Added a check if there is any notifications.
Notification: add notificationModel.count check to possibly prevent unwanted behaviour
This commit is contained in:
parent
de465ebcba
commit
85b92d9c6f
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ Variants {
|
||||||
property var removingNotifications: ({})
|
property var removingNotifications: ({})
|
||||||
|
|
||||||
// If no notification display activated in settings, then show them all
|
// 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
|
|| (Settings.data.notifications.monitors.length === 0)) : false
|
||||||
|
|
||||||
visible: (NotificationService.notificationModel.count > 0)
|
visible: (NotificationService.notificationModel.count > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue