[vlc-commits] qml: hide list grid button when appropriate in Network view

Prince Gupta git at videolan.org
Thu Jan 14 14:42:34 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Dec 24 00:59:38 2020 +0530| [bf1cb93d8d123e4a059b86d9b099cae68b5f85a4] | committer: Pierre Lamot

qml: hide list grid button when appropriate in Network view

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 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)



More information about the vlc-commits mailing list