Notification: create layer on demand

This commit is contained in:
ItsLemmy
2025-11-27 14:28:57 -05:00
parent f66e063d5a
commit 0e46c4bb2b
+3 -3
View File
@@ -22,7 +22,7 @@ Variants {
property ListModel notificationModel: NotificationService.activeList
// Always create window (but with 0x0 dimensions when no notifications)
active: true
active: notificationModel.count > 0 || delayTimer.running
// Keep loader active briefly after last notification to allow animations to complete
Timer {
@@ -104,8 +104,8 @@ Variants {
margins.left: isLeft ? barOffsetLeft : 0
margins.right: isRight ? barOffsetRight : 0
implicitWidth: (notificationModel.count > 0 || delayTimer.running) ? notifWidth : 0
implicitHeight: (notificationModel.count > 0 || delayTimer.running) ? (notificationStack.implicitHeight + Style.marginL) : 0
implicitWidth: notifWidth
implicitHeight: notificationStack.implicitHeight + Style.marginL
property var animateConnection: null