vlc | branch: master | Pierre Lamot <[email protected]> | Tue Sep  1 10:25:13 
2020 +0200| [478455800feb981aaa9e1563aafa0f6c2fb23cb6] | committer: Pierre Lamot

qml: avoid loop binding of playlist widthFactor

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=478455800feb981aaa9e1563aafa0f6c2fb23cb6
---

 modules/gui/qt/medialibrary/qml/MainDisplay.qml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml 
b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index 2c99109102..1b14e17e28 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -328,9 +328,12 @@ Widgets.NavigableFocusScope {
                                         atRight: false
                                         targetWidth: playlistColumn.width
                                         sourceWidth: root.width
-                                        widthFactor: 
mainInterface.playlistWidthFactor
 
                                         onWidthFactorChanged: 
mainInterface.setPlaylistWidthFactor(widthFactor)
+                                        Component.onCompleted:  {
+                                            //don't bind just provide the 
initial value, HorizontalResizeHandle.widthFactor updates itself
+                                            widthFactor = 
mainInterface.playlistWidthFactor
+                                        }
                                     }
                                 }
                             }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to