From 85b92d9c6f297754bbd24f16f87a63f5b2c5b06c Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Thu, 28 Aug 2025 10:51:18 +0200 Subject: [PATCH] Added a check if there is any notifications. Notification: add notificationModel.count check to possibly prevent unwanted behaviour --- Modules/Notification/Notification.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index cdde06e..4a2b47f 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -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)