Use PropertyAction instead of NumberAnimation for booleans

This commit is contained in:
Loren Burkholder 2021-04-02 22:44:08 -04:00
parent 2c49c188e3
commit e7be12b8a0

View file

@ -75,10 +75,9 @@ Item {
to: "shown" to: "shown"
SequentialAnimation { SequentialAnimation {
NumberAnimation { PropertyAction {
targets: [popupRoot, popup, overlay] targets: [popupRoot, popup, overlay]
properties: "visible" properties: "visible"
duration: 0
} }
ParallelAnimation { ParallelAnimation {
@ -120,10 +119,9 @@ Item {
} }
} }
NumberAnimation { PropertyAction {
targets: [popupRoot, popup, overlay] targets: [popupRoot, popup, overlay]
properties: "visible" properties: "visible"
duration: 0
} }
} }
} }