Commit 94b71c80 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Run countdown when no reply was typed

When the notification popup loses focus with nothing typed into the reply field,
restart timer.
parent f4b6c0d6
......@@ -95,6 +95,7 @@ ColumnLayout {
readonly property bool dragging: (thumbnailStripLoader.item && thumbnailStripLoader.item.dragging)
|| (jobLoader.item && jobLoader.item.dragging)
property bool replying: false
readonly property bool hasPendingReply: replyLoader.item && replyLoader.item.text !== ""
signal bodyClicked
signal closeClicked
......
......@@ -154,7 +154,8 @@ PlasmaCore.Dialog {
if (notificationItem.dragging || notificationItem.menuOpen) {
return false;
}
if (notificationItem.replying) {
if (notificationItem.replying
&& (notificationPopup.active || notificationItem.hasPendingReply)) {
return false;
}
return true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment