diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-02 19:52:21 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-02 19:52:21 +1000 |
| commit | 2d7d01354a10eeeab3db8bc9c13538c50a8aa024 (patch) | |
| tree | 2ffe69304c985117e9641d0c36006c73d96b97f6 /modules/lock | |
| parent | nix/hm: add extraEnvironment (#533) (diff) | |
| download | caelestia-shell-2d7d01354a10eeeab3db8bc9c13538c50a8aa024.tar.gz caelestia-shell-2d7d01354a10eeeab3db8bc9c13538c50a8aa024.tar.bz2 caelestia-shell-2d7d01354a10eeeab3db8bc9c13538c50a8aa024.zip | |
lock/notifs: fix undef error
Diffstat (limited to 'modules/lock')
| -rw-r--r-- | modules/lock/NotifGroup.qml | 4 |
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 } |