[vlc-devel] [PATCH 1/4] QML: display a message when no network shares has been found

Adrien Maglo magsoft at videolan.org
Wed Jun 26 11:21:38 CEST 2019


---
 modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
index 15362d7564..1f58c17ef8 100644
--- a/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCNetworkDisplay.qml
@@ -111,4 +111,12 @@ Utils.NavigableFocusScope {
         onActionUp: root.actionUp(index)
         onActionCancel: root.actionCancel(index)
     }
+
+    Label {
+        anchors.centerIn: parent
+        visible: delegateModel.items.count === 0
+        font.pixelSize: VLCStyle.fontHeight_xxlarge
+        color: root.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.text
+        text: qsTr("No network shares found")
+    }
 }
-- 
2.20.1



More information about the vlc-devel mailing list