different icon when tracked notifs > 0

This commit is contained in:
Zacharias-Brohn
2025-11-14 23:50:38 +01:00
parent 72e12d2078
commit 030ab5fea0
5 changed files with 31 additions and 9 deletions
+9
View File
@@ -8,6 +8,7 @@ import QtQuick.Effects
import QtQuick
import Quickshell.Services.Notifications
import qs.Config
import qs.Helpers
PanelWindow {
id: root
@@ -26,6 +27,14 @@ PanelWindow {
mask: Region { item: backgroundRect }
onNotificationsChanged: {
if ( root.notifications.length > 0 ) {
HasNotifications.hasNotifications = true;
} else {
HasNotifications.hasNotifications = false;
}
}
IpcHandler {
id: ipcHandler
target: "root"