Krolyxon
Commit 037e2ee

Branches

Refs →

aurora037e2ee

aurora: fix ReferenceError after clicking a notification action

Author
krolyxon
Date
2026-10-25 16:27 +0530
Parent
a466635
Commit
037e2eeff13c1616398c18d70f023056954a1ebe

+6 −1

1 file changed

  1. M .config/quickshell/aurora/NotifCard.qml +6 −1
M .config/quickshell/aurora/NotifCard.qml View
@@ -103,7 +103,12 @@ Rectangle {
103103 required property var modelData
104104 label: modelData.text
105105 implicitHeight: 24
106− onClicked: { modelData.invoke(); if (card.popup) Notifs.dropPopup(card.n) }
106+ // invoke() can close the notification and destroy this card: read everything first
107+ onClicked: {
108+ var action = modelData, n = card.n, popup = card.popup
109+ action.invoke()
110+ if (popup) Notifs.dropPopup(n)
111+ }
107112 }
108113 }
109114 }