fix: update notification close behavior

This commit is contained in:
Hannes
2026-08-29 23:03:03 +02:00
parent bd59a8e457
commit 504c5ac484
2 changed files with 2 additions and 4 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.dismiss() 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)
+1 -3
View File
@@ -15,7 +15,7 @@ Rectangle {
property bool closing: false property bool closing: false
property real duration: ( notification.hasInlineReply ? 5000000000 : 1) property real duration: ( notification.hasInlineReply ? 5000000000 : 1000)
// notification.expireTimeout > 0 ? notification.expireTimeout : // notification.expireTimeout > 0 ? notification.expireTimeout :
// urgency ? urgency * 2000 : // urgency ? urgency * 2000 :
// 5000 // 5000
@@ -222,10 +222,8 @@ Rectangle {
visible: notification.hasInlineReply visible: notification.hasInlineReply
function sendReply(message) { function sendReply(message) {
console.log("BEFORE sendInlineReply", notification.id, notification.resident)
notification.sendInlineReply(message) notification.sendInlineReply(message)
inlineReplyTextField.focus = false inlineReplyTextField.focus = false
console.log("AFTER sendInlineReply", notification.id)
if (!notification.resident) { if (!notification.resident) {
root.closeNotification(true) root.closeNotification(true)