popouts: fix anim when not shown

This commit is contained in:
2 * r + 2 * t 2025-06-07 15:33:24 +10:00
parent 5948d581fd
commit 5d2f46082a
2 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,8 @@ Item {
} }
Behavior on implicitHeight { Behavior on implicitHeight {
enabled: Popouts.hasCurrent
Anim { Anim {
easing.bezierCurve: Appearance.anim.curves.emphasized easing.bezierCurve: Appearance.anim.curves.emphasized
} }

View file

@ -5,11 +5,15 @@ import Quickshell
import QtQuick import QtQuick
Singleton { Singleton {
id: root
property string currentName property string currentName
property real currentCenter property real currentCenter
property bool hasCurrent property bool hasCurrent
Behavior on currentCenter { Behavior on currentCenter {
enabled: root.hasCurrent
NumberAnimation { NumberAnimation {
duration: Appearance.anim.durations.normal duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline easing.type: Easing.BezierSpline