summaryrefslogtreecommitdiff
path: root/modules/lock/NotifGroup.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-02 19:52:21 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-02 19:52:21 +1000
commit2d7d01354a10eeeab3db8bc9c13538c50a8aa024 (patch)
tree2ffe69304c985117e9641d0c36006c73d96b97f6 /modules/lock/NotifGroup.qml
parentnix/hm: add extraEnvironment (#533) (diff)
downloadcaelestia-shell-2d7d01354a10eeeab3db8bc9c13538c50a8aa024.tar.gz
caelestia-shell-2d7d01354a10eeeab3db8bc9c13538c50a8aa024.tar.bz2
caelestia-shell-2d7d01354a10eeeab3db8bc9c13538c50a8aa024.zip
lock/notifs: fix undef error
Diffstat (limited to 'modules/lock/NotifGroup.qml')
-rw-r--r--modules/lock/NotifGroup.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lock/NotifGroup.qml b/modules/lock/NotifGroup.qml
index d5fc213..344c39a 100644
--- a/modules/lock/NotifGroup.qml
+++ b/modules/lock/NotifGroup.qml
@@ -79,7 +79,7 @@ StyledRect {
id: materialIconComp
MaterialIcon {
- text: Icons.getNotifIcon(root.notifs[0].summary, root.urgency)
+ text: Icons.getNotifIcon(root.notifs[0]?.summary, root.urgency)
color: root.urgency === "critical" ? Colours.palette.m3onError : root.urgency === "low" ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
font.pointSize: Appearance.font.size.large
}
@@ -142,7 +142,7 @@ StyledRect {
StyledText {
animate: true
- text: root.notifs[0].timeStr
+ text: root.notifs[0]?.timeStr ?? ""
color: Colours.palette.m3outline
font.pointSize: Appearance.font.size.small
}