[vlc-devel] [PATCH 38/38] qml: fix miniplayer invisible on page reload bug

Fatih Uzunoglu fuzun54 at outlook.com
Thu Aug 20 19:55:47 CEST 2020


---
 modules/gui/qt/player/qml/MiniPlayer.qml | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml
index 4eadaf4926..377dee6260 100644
--- a/modules/gui/qt/player/qml/MiniPlayer.qml
+++ b/modules/gui/qt/player/qml/MiniPlayer.qml
@@ -17,11 +17,9 @@ Widgets.NavigableFocusScope {
 
     property var mainContent: undefined
 
-    Component.onCompleted : {
-        if (player.playingState === PlayerController.PLAYING_STATE_STOPPED)
-            root.implicitHeight = 0;
-        else
-            root.implicitHeight = root.childrenRect.height;
+    Component.onCompleted: {
+        if (player.playingState !== PlayerController.PLAYING_STATE_STOPPED)
+            root.implicitHeight = VLCStyle.miniPlayerHeight
     }
 
     Connections {
@@ -40,7 +38,7 @@ Widgets.NavigableFocusScope {
         properties: "implicitHeight"
         duration: 200
         easing.type: Easing.InSine
-        to: root.childrenRect.height
+        to: VLCStyle.miniPlayerHeight
     }
 
     PropertyAnimation {
-- 
2.25.1



More information about the vlc-devel mailing list