fix: Ensure inline reply functionality closes the notification correctly for resident notifications

This commit is contained in:
Hannes
2026-08-29 23:10:37 +02:00
parent 504c5ac484
commit 1bf0f0bfc1
2 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ PanelWindow {
const summary = notification.summary const summary = notification.summary
if (dismiss) { if (dismiss) {
Config.debug == "Notification" && console.log("[NotificationWindow " + Hyprland.monitorFor(screen).activeWorkspace.id + "]: Dissmiss: " + appName + " " + id + " - " + summary) Config.debug == "Notification" && console.log("[NotificationWindow " + Hyprland.monitorFor(screen).activeWorkspace.id + "]: Dissmiss: " + appName + " " + id + " - " + summary)
notification.tracked ? notification.dismiss() if (notification.tracked) {notification.dismiss()}
notificationListModel.remove(index) notificationListModel.remove(index)
} else { } else {
Config.debug == "Notification" && console.log("[NotificationWindow " + Hyprland.monitorFor(screen).activeWorkspace.id + "]: Close: " + appName + " " + id + " - " + summary) Config.debug == "Notification" && console.log("[NotificationWindow " + Hyprland.monitorFor(screen).activeWorkspace.id + "]: Close: " + appName + " " + id + " - " + summary)
+6 -11
View File
@@ -15,11 +15,11 @@ Rectangle {
property bool closing: false property bool closing: false
property real duration: ( notification.hasInlineReply ? 5000000000 : 1000) property real duration: (
// notification.expireTimeout > 0 ? notification.expireTimeout : notification.expireTimeout > 0 ? notification.expireTimeout :
// urgency ? urgency * 2000 : urgency ? urgency * 2000 :
// 5000 5000
// ) )
signal dismissed(var notification, bool dismiss) signal dismissed(var notification, bool dismiss)
@@ -224,12 +224,7 @@ Rectangle {
function sendReply(message) { function sendReply(message) {
notification.sendInlineReply(message) notification.sendInlineReply(message)
inlineReplyTextField.focus = false inlineReplyTextField.focus = false
root.closeNotification(true)
if (!notification.resident) {
root.closeNotification(true)
} else {
root.closeNotification(false)
}
} }
Row { Row {