From 0e46c4bb2b189e21d5c70f9bdf27a86fd5a8665e Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Thu, 27 Nov 2025 14:28:57 -0500 Subject: [PATCH] Notification: create layer on demand --- Modules/Notification/Notification.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index d4d69db4..ca47a6e9 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -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