From 9f9339427b965e88f0d216dc13f209d17706e1c9 Mon Sep 17 00:00:00 2001 From: Fatih Uzunoglu Date: Mon, 11 Mar 2024 18:08:39 +0200 Subject: [PATCH] qml: do not show mini player when ui is scaled --- modules/gui/qt/player/qml/MiniPlayer.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml index 30749a0b4b..ae0a037328 100644 --- a/modules/gui/qt/player/qml/MiniPlayer.qml +++ b/modules/gui/qt/player/qml/MiniPlayer.qml @@ -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 }) }