[vlc-devel] [PATCH 6/8] qml: defer GridItem.selectedUnderlay loading until visible

Prince Gupta guptaprince8832 at gmail.com
Wed Apr 21 10:12:02 UTC 2021


---
 modules/gui/qt/widgets/qml/GridItem.qml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index 794c40a217..d3cf0028d2 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -229,6 +229,12 @@ FocusScope {
             id: selectedUnderlayLoader
 
             asynchronous: true
+            active: false
+            visible: false
+            onVisibleChanged: {
+                if (visible && !active)
+                    active = true
+            }
         }
 
         Column {
-- 
2.27.0



More information about the vlc-devel mailing list