Commit 22a702b5 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Nate Graham
Browse files

[applets/notifications] Close the popup after deleting last notification

We want to make sure that the popup closes whenever an action causes the
list to become empty--no matter how that happens.

BUG: 435194
FIXED-IN: 5.22
parent 38e5d480
......@@ -409,9 +409,6 @@ PlasmaComponents3.Page {
onCloseClicked: {
historyModel.close(historyModel.index(index, 0))
if (list.count === 0) {
root.closePassivePlasmoid();
}
}
onConfigureClicked: historyModel.configure(historyModel.index(index, 0))
......@@ -502,6 +499,7 @@ PlasmaComponents3.Page {
}
onCloseClicked: close()
onDismissClicked: {
model.dismissed = false;
root.closePassivePlasmoid();
......@@ -543,9 +541,6 @@ PlasmaComponents3.Page {
function close() {
historyModel.close(historyModel.index(index, 0));
if (list.count === 0) {
root.closePassivePlasmoid();
}
}
}
}
......
......@@ -143,6 +143,12 @@ Item {
}
return urgencies;
}
onCountChanged: {
if (count === 0) {
closePassivePlasmoid();
}
}
}
Binding {
......
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