don't animate on notificationwindow

This commit is contained in:
2025-10-14 00:08:25 -03:00
parent 6e4d43b206
commit edca97f4c5
2 changed files with 4 additions and 1 deletions

View File

@@ -26,13 +26,15 @@ BackgroundRectangle {
return Quickshell.iconPath(notification?.appIcon); return Quickshell.iconPath(notification?.appIcon);
} }
property bool collapsed: false property bool collapsed: true
implicitWidth: 400 implicitWidth: 400
readonly property real contentHeight: Math.max(notifLayout.implicitHeight + 20, 100) readonly property real contentHeight: Math.max(notifLayout.implicitHeight + 20, 100)
height: collapsed ? 0 : contentHeight height: collapsed ? 0 : contentHeight
Component.onCompleted: { root.collapsed = false }
Behavior on height { Behavior on height {
SequentialAnimation { SequentialAnimation {
NumberAnimation { NumberAnimation {

View File

@@ -93,6 +93,7 @@ PanelWindow {
required property var modelData required property var modelData
notification: modelData notification: modelData
implicitWidth: listView.width - 20 implicitWidth: listView.width - 20
collapsed: false
onDismissed: { onDismissed: {
NotificationService.notificationDismiss(notification); NotificationService.notificationDismiss(notification);
} }