[vlc-devel] [PATCH 7/7] qt: media center: Explicitely reload the medialib on first display

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Jan 6 13:38:50 CET 2020


---
 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 a12f915b7c..ef1135185b 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -38,7 +38,10 @@ Widgets.NavigableFocusScope {
 
     onViewChanged: loadView()
     onViewPropertiesChanged: loadView()
-    Component.onCompleted: loadView()
+    Component.onCompleted: {
+        loadView()
+        medialib.reload()
+    }
 
     function loadView() {
         var found = stackView.loadView(root.pageModel, root.view, root.viewProperties)
-- 
2.20.1



More information about the vlc-devel mailing list