[vlc-devel] [PATCH 31/39] qml: hide list grid button when appropriate in Network view

Prince Gupta guptaprince8832 at gmail.com
Thu Jan 7 11:50:27 UTC 2021


---
 modules/gui/qt/network/qml/NetworkDisplay.qml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/network/qml/NetworkDisplay.qml b/modules/gui/qt/network/qml/NetworkDisplay.qml
index 9e61eff225..d440353ab0 100644
--- a/modules/gui/qt/network/qml/NetworkDisplay.qml
+++ b/modules/gui/qt/network/qml/NetworkDisplay.qml
@@ -29,7 +29,7 @@ Widgets.NavigableFocusScope {
     id: root
 
     property var extraLocalActions: undefined
-
+    property bool isViewMultiView: true
     property var tree: undefined
     onTreeChanged:  loadView()
     Component.onCompleted: loadView()
@@ -49,10 +49,12 @@ Widgets.NavigableFocusScope {
         if (root.tree === undefined) {
             page ="qrc:///network/NetworkHomeDisplay.qml"
             root.localMenuDelegate = null
+            isViewMultiView = false
         } else {
             page = "qrc:///network/NetworkBrowseDisplay.qml"
             props = { providerModel: mediaModel, contextMenu: mediaContextMenu, tree: root.tree }
             root.localMenuDelegate = addressBar
+            isViewMultiView = true
         }
         view.replace(page, props)
         if (view.currentItem.model)
-- 
2.25.1



More information about the vlc-devel mailing list