fix: Ensure inline reply functionality closes the notification correctly for resident notifications
This commit is contained in:
@@ -68,7 +68,7 @@ PanelWindow {
|
||||
const summary = notification.summary
|
||||
if (dismiss) {
|
||||
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)
|
||||
} else {
|
||||
Config.debug == "Notification" && console.log("[NotificationWindow " + Hyprland.monitorFor(screen).activeWorkspace.id + "]: Close: " + appName + " " + id + " - " + summary)
|
||||
|
||||
@@ -15,11 +15,11 @@ Rectangle {
|
||||
|
||||
property bool closing: false
|
||||
|
||||
property real duration: ( notification.hasInlineReply ? 5000000000 : 1000)
|
||||
// notification.expireTimeout > 0 ? notification.expireTimeout :
|
||||
// urgency ? urgency * 2000 :
|
||||
// 5000
|
||||
// )
|
||||
property real duration: (
|
||||
notification.expireTimeout > 0 ? notification.expireTimeout :
|
||||
urgency ? urgency * 2000 :
|
||||
5000
|
||||
)
|
||||
|
||||
signal dismissed(var notification, bool dismiss)
|
||||
|
||||
@@ -224,12 +224,7 @@ Rectangle {
|
||||
function sendReply(message) {
|
||||
notification.sendInlineReply(message)
|
||||
inlineReplyTextField.focus = false
|
||||
|
||||
if (!notification.resident) {
|
||||
root.closeNotification(true)
|
||||
} else {
|
||||
root.closeNotification(false)
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
|
||||
Reference in New Issue
Block a user