Compare commits

..

No commits in common. "427aeb438ccad5d843f2d27202aca58ee8b9db8b" and "03c545c9d1107bcd10a16a247361349de2bf5aa1" have entirely different histories.

3 changed files with 3 additions and 14 deletions

View file

@ -97,8 +97,8 @@ PanelWindow {
Item {
anchors.fill: parent
anchors.topMargin: 3
anchors.leftMargin: 6
anchors.rightMargin: 6
anchors.leftMargin: Math.max(M.Theme.barPadding, M.Theme.screenRadius)
anchors.rightMargin: Math.max(M.Theme.barPadding, M.Theme.screenRadius)
// ---- center (declared first so left/right can anchor to it) ----
RowLayout {

View file

@ -63,14 +63,6 @@ PanelWindow {
_entered = true;
}
Connections {
target: M.NotifService
function onPopupExpiring(notifId) {
if (notifId === popupItem.modelData.id)
popupItem.animateDismiss(false);
}
}
Behavior on y {
enabled: popupItem._entered
NumberAnimation {

View file

@ -105,15 +105,12 @@ QtObject {
}
}
// Signal popups to animate out before removal
signal popupExpiring(var notifId)
property Component _expireTimer: Component {
Timer {
property var _notifId
running: true
onTriggered: {
root.popupExpiring(_notifId);
root.dismissPopup(_notifId);
destroy();
}
}