qml: do not show mini player when ui is scaled

This commit is contained in:
Fatih Uzunoglu 2024-03-11 18:08:39 +02:00 committed by Jean-Baptiste Kempf
parent 3e45f73735
commit 9f9339427b
1 changed files with 4 additions and 2 deletions

View File

@ -51,8 +51,10 @@ ControlBar {
identifier: PlayerControlbarModel.Miniplayer
Component.onCompleted: {
// Enable the behavior only when everything is resolved:
onImplicitHeightChanged: {
// Animation should not be based on the implicit height change
// but rather the visibility state:
behavior.enabled = false
Qt.callLater(() => { behavior.enabled = true })
}